diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-04 19:31:07 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-04 19:31:07 +0000 |
commit | 945ee2b6f8d4dc480aa39d0bfb0de407445f6722 (patch) | |
tree | 568b9b2adeec3753e758951ca5781cb90a590b03 /src/modules/m_spanningtree.cpp | |
parent | b6de4410321b26eb4a591d2693078a5ef5c7e582 (diff) |
Ping checking fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2162 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree.cpp')
-rw-r--r-- | src/modules/m_spanningtree.cpp | 44 |
1 files changed, 23 insertions, 21 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 439bd9fd6..a39a631fa 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -76,6 +76,8 @@ class TreeServer int UserCount; int OperCount; TreeSocket* Socket; // for directly connected servers this points at the socket object + time_t NextPing; + bool LastPingWasGood; public: @@ -116,6 +118,27 @@ class TreeServer return this->VersionString; } + void SetNextPingTime(time_t t) + { + this->NextPing = t; + LastPingWasGood = false; + } + + time_t NextPingTime() + { + return this->NextPing; + } + + bool AnsweredLastPing() + { + return LastPingWasGood; + } + + void SetPingFlag() + { + LastPingWasGood = true; + } + int GetUserCount() { return this->UserCount; @@ -353,27 +376,6 @@ class TreeSocket : public InspSocket } return true; } - - void SetNextPingTime(time_t t) - { - this->NextPing = t; - LastPingWasGood = false; - } - - time_t NextPingTime() - { - return this->NextPing; - } - - bool AnsweredLastPing() - { - return LastPingWasGood; - } - - void SetPingFlag() - { - LastPingWasGood = true; - } virtual void OnError(InspSocketError e) { |