diff options
author | Mattes D <github@xoft.cz> | 2015-01-25 16:33:49 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-01-27 14:53:33 +0100 |
commit | 13091e0fa0339a7e84b6a9e75cc91c96de0eae2b (patch) | |
tree | d5ea9123e960cc1db2f68d6604faae3e16a2f5ac /src/RCONServer.h | |
parent | Replaced atoi() with StringToInteger(). (diff) | |
download | cuberite-13091e0fa0339a7e84b6a9e75cc91c96de0eae2b.tar cuberite-13091e0fa0339a7e84b6a9e75cc91c96de0eae2b.tar.gz cuberite-13091e0fa0339a7e84b6a9e75cc91c96de0eae2b.tar.bz2 cuberite-13091e0fa0339a7e84b6a9e75cc91c96de0eae2b.tar.lz cuberite-13091e0fa0339a7e84b6a9e75cc91c96de0eae2b.tar.xz cuberite-13091e0fa0339a7e84b6a9e75cc91c96de0eae2b.tar.zst cuberite-13091e0fa0339a7e84b6a9e75cc91c96de0eae2b.zip |
Diffstat (limited to 'src/RCONServer.h')
-rw-r--r-- | src/RCONServer.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/RCONServer.h b/src/RCONServer.h index 1d599b279..352fa7b50 100644 --- a/src/RCONServer.h +++ b/src/RCONServer.h @@ -67,16 +67,16 @@ protected: 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 */ - bool ProcessPacket(int a_RequestID, int a_PacketType, int a_PayloadLength, const char * a_Payload); + bool ProcessPacket(UInt32 a_RequestID, UInt32 a_PacketType, UInt32 a_PayloadLength, const char * a_Payload); - /** Reads 4 bytes from a_Buffer and returns the int they represent */ - int IntFromBuffer(const char * a_Buffer); + /** Reads 4 bytes from a_Buffer and returns the LE UInt32 they represent */ + UInt32 UIntFromBuffer(const char * a_Buffer); /** Puts 4 bytes representing the int into the buffer */ - void IntToBuffer(int a_Value, char * a_Buffer); + void UIntToBuffer(UInt32 a_Value, char * a_Buffer); /** Sends a RCON packet back to the client */ - void SendResponse(int a_RequestID, int a_PacketType, int a_PayloadLength, const char * a_Payload); + void SendResponse(UInt32 a_RequestID, UInt32 a_PacketType, UInt32 a_PayloadLength, const char * a_Payload); } ; |