summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/treeserver.h
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-06-17 13:27:21 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-06-17 13:27:21 +0200
commit9928fca4249ea40071f2ab631a92736ba28971b8 (patch)
tree914d25d8e499baa45d8c1bc1e058dd823e49dedd /src/modules/m_spanningtree/treeserver.h
parent7e47e4184196952d7bd2ed2c79232fc374f9e664 (diff)
m_spanningtree Add a field to TreeServer for storing full version strings
Diffstat (limited to 'src/modules/m_spanningtree/treeserver.h')
-rw-r--r--src/modules/m_spanningtree/treeserver.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree/treeserver.h b/src/modules/m_spanningtree/treeserver.h
index ab47012b0..9218c02ce 100644
--- a/src/modules/m_spanningtree/treeserver.h
+++ b/src/modules/m_spanningtree/treeserver.h
@@ -43,6 +43,11 @@ class TreeServer : public Server
TreeServer* Route; /* Route entry */
std::vector<TreeServer*> Children; /* List of child objects */
std::string VersionString; /* Version string or empty string */
+
+ /** Full version string including patch version and other info
+ */
+ std::string fullversion;
+
TreeSocket* Socket; /* Socket used to communicate with this server */
time_t NextPing; /* After this time, the server should be PINGed*/
bool LastPingWasGood; /* True if the server responded to the last PING with a PONG */
@@ -96,6 +101,11 @@ class TreeServer : public Server
*/
const std::string& GetVersion();
+ /** Get the full version string of this server
+ * @return The full version string of this server, including patch version and other info
+ */
+ const std::string& GetFullVersion() const { return fullversion; }
+
/** Set time we are next due to ping this server
*/
void SetNextPingTime(time_t t);
@@ -142,6 +152,11 @@ class TreeServer : public Server
*/
void SetVersion(const std::string &Version);
+ /** Set the full version string
+ * @param verstr The version string to set
+ */
+ void SetFullVersion(const std::string& verstr) { fullversion = verstr; }
+
/** Return all child servers
*/
const ChildServers& GetChildren() const { return Children; }