public:
typedef std::set<TreeSocket*> TreeSocketSet;
- typedef std::map<TreeSocket*, std::pair<std::string, int> > TimeoutList;
+ typedef std::map<TreeSocket*, std::pair<std::string, unsigned int> > TimeoutList;
/** Creator module
*/
/* Number of seconds that a server can go without ping
* before opers are warned of high latency.
*/
- int PingWarnTime;
+ unsigned int PingWarnTime;
/** This variable represents the root of the server tree
*/
TreeServer *TreeRoot;
/** Ping frequency of server to server links
*/
- int PingFreq;
+ unsigned int PingFreq;
/** Initialise utility class
*/
/** Prepare for class destruction
*/
- CullResult cull();
+ CullResult cull() CXX11_OVERRIDE;
/** Destroy class and free listeners etc
*/
*/
TreeServer* FindServerID(const std::string &id);
+ /** Find a server based on a target string.
+ * @param target Target string where a command should be routed to. May be a server name, a sid, a nickname or a uuid.
+ */
+ TreeServer* FindRouteTarget(const std::string& target);
+
/** Find a server by glob mask
*/
TreeServer* FindServerMask(const std::string &ServerName);