]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/treeserver.h
Allow support for multiple dns results per request. This is a significant change...
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / treeserver.h
index 381ed928f678ed139a5a94ab20a862e35a445fba..d8d3b70e8d8ba1c3681919d106d1b736246e4406 100644 (file)
@@ -1,3 +1,16 @@
+/*       +------------------------------------+
+ *       | Inspire Internet Relay Chat Daemon |
+ *       +------------------------------------+
+ *
+ *  InspIRCd: (C) 2002-2007 InspIRCd Development Team
+ * See: http://www.inspircd.org/wiki/index.php/Credits
+ *
+ * This program is free but copyrighted software; see
+ *            the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
 #ifndef __TREESERVER_H__
 #define __TREESERVER_H__
 
@@ -33,6 +46,8 @@ class TreeServer : public classbase
 
  public:
 
+       bool Warned;                            /* True if we've warned opers about high latency on this server */
+
        /** We don't use this constructor. Its a dummy, and won't cause any insertion
         * of the TreeServer into the hash_map. See below for the two we DO use.
         */
@@ -94,9 +109,13 @@ class TreeServer : public classbase
         */
        time_t LastPing;
 
+       /** Last ping time in microseconds, used to calculate round trip time
+        */
+       unsigned long LastPingMsec;
+
        /** Round trip time of last ping
         */
-       time_t rtt;
+       unsigned long rtt;
 
        /** True if this server is hidden
         */