From bc421842c6a052cbc74d3cc28d5edb263780350f Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Thu, 27 Jun 2013 15:14:20 +0000 Subject: Added a basic RCON protocol git-svn-id: http://mc-server.googlecode.com/svn/trunk@1628 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/OSSupport/ListenThread.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source/OSSupport/ListenThread.h') diff --git a/source/OSSupport/ListenThread.h b/source/OSSupport/ListenThread.h index 952cc8a3f..c29140ed3 100644 --- a/source/OSSupport/ListenThread.h +++ b/source/OSSupport/ListenThread.h @@ -37,7 +37,7 @@ public: virtual void OnConnectionAccepted(cSocket & a_Socket) = 0; } ; - cListenThread(cCallback & a_Callback, cSocket::eFamily a_Family); + cListenThread(cCallback & a_Callback, cSocket::eFamily a_Family, const AString & a_ServiceName = ""); ~cListenThread(); /// Creates all the sockets, returns trus if successful, false if not. @@ -62,8 +62,13 @@ protected: /// Sockets that are being monitored cSockets m_Sockets; + /// If set to true, the SO_REUSEADDR socket option is set to true bool m_ShouldReuseAddr; + /// Name of the service that's listening on the ports; for logging purposes only + AString m_ServiceName; + + /** Fills in m_Sockets with individual sockets, each for one port specified in a_PortsString. Returns true if successful and at least one socket has been created */ -- cgit v1.2.3