diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-08 22:40:11 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-08 22:40:11 +0000 |
commit | 99a1ea0892b575c6d66d9f4c0aab5042c261ce4a (patch) | |
tree | 42f369f72519bf4e13ac30d5851166de8b897073 /include/protocol.h | |
parent | 2425244549a45295168b1958b9d599e5e286e629 (diff) |
Add call to protocol interface to get useful info on the server map. Return a std::list of classes each of which has a server name, parent server name, user and oper count, and latency in millisecs
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9673 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/protocol.h')
-rw-r--r-- | include/protocol.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/protocol.h b/include/protocol.h index 16e347ad2..44013a1ca 100644 --- a/include/protocol.h +++ b/include/protocol.h @@ -20,6 +20,18 @@ class InspIRCd; typedef std::deque<std::string> parameterlist; +class ProtoServer +{ + public: + std::string servername; + std::string parentname; + unsigned int usercount; + unsigned int opercount; + unsigned int latencyms; +}; + +typedef std::list<ProtoServer> ProtoServerList; + class ProtocolInterface : public Extensible { protected: @@ -60,6 +72,8 @@ class ProtocolInterface : public Extensible virtual void SendUserPrivmsg(User* target, const std::string &text) { } virtual void SendUserNotice(User* target, const std::string &text) { } + + virtual void GetServerList(ProtoServerList &sl) { } }; #endif |