diff options
Diffstat (limited to 'src/RCONServer.h')
-rw-r--r-- | src/RCONServer.h | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/src/RCONServer.h b/src/RCONServer.h index 2aba6ebf2..18e92a2aa 100644 --- a/src/RCONServer.h +++ b/src/RCONServer.h @@ -25,23 +25,22 @@ class cSettingsRepositoryInterface; class cRCONServer { -public: + public: cRCONServer(cServer & a_Server); virtual ~cRCONServer(); void Initialize(cSettingsRepositoryInterface & a_Settings); -protected: + protected: friend class cRCONCommandOutput; friend class cRCONListenCallbacks; - class cConnection : - public cTCPLink::cCallbacks + class cConnection : public cTCPLink::cCallbacks { - public: + public: cConnection(cRCONServer & a_RCONServer, const AString & a_IPAddress); - protected: + protected: friend class cRCONCommandOutput; /** Set to true if the client has successfully authenticated */ @@ -66,7 +65,8 @@ protected: virtual void OnRemoteClosed(void) override; virtual void OnError(int a_ErrorCode, const AString & a_ErrorMsg) override; - /** Processes the given packet and sends the response; returns true if successful, false if the connection is to be dropped */ + /** Processes the given packet and sends the response; returns true if successful, false if the connection is to + * be dropped */ bool ProcessPacket(UInt32 a_RequestID, UInt32 a_PacketType, UInt32 a_PayloadLength, const char * a_Payload); /** Reads 4 bytes from a_Buffer and returns the LE UInt32 they represent */ @@ -77,7 +77,7 @@ protected: /** Sends a RCON packet back to the client */ void SendResponse(UInt32 a_RequestID, UInt32 a_PacketType, UInt32 a_PayloadLength, const char * a_Payload); - } ; + }; /** The server object that will process the commands received */ @@ -88,9 +88,4 @@ protected: /** Password for authentication */ AString m_Password; -} ; - - - - - +}; |