From 99a1ea0892b575c6d66d9f4c0aab5042c261ce4a Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 8 May 2008 22:40:11 +0000 Subject: 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 --- include/protocol.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'include') 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 parameterlist; +class ProtoServer +{ + public: + std::string servername; + std::string parentname; + unsigned int usercount; + unsigned int opercount; + unsigned int latencyms; +}; + +typedef std::list 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 -- cgit v1.2.3