make some functions static
This commit is contained in:
parent
42d0cdca59
commit
d078730aeb
1 changed files with 11 additions and 8 deletions
|
@ -69,6 +69,9 @@
|
|||
#define PROTMESSID_CLM_DISCONNECTION 1010 // disconnection
|
||||
|
||||
|
||||
// TODO implement message for querying the version and operating system of the server
|
||||
|
||||
|
||||
// lengths of message as defined in protocol.cpp file
|
||||
#define MESS_HEADER_LENGTH_BYTE 7 // TAG (2), ID (2), cnt (1), length (2)
|
||||
#define MESS_LEN_WITHOUT_DATA_BYTE ( MESS_HEADER_LENGTH_BYTE + 2 /* CRC (2) */ )
|
||||
|
@ -117,7 +120,7 @@ public:
|
|||
void CreateCLEmptyMes ( const CHostAddress& InetAddr );
|
||||
void CreateCLDisconnection ( const CHostAddress& InetAddr );
|
||||
|
||||
bool ParseMessageFrame ( const CVector<uint8_t>& vecbyData,
|
||||
static bool ParseMessageFrame ( const CVector<uint8_t>& vecbyData,
|
||||
const int iNumBytesIn,
|
||||
CVector<uint8_t>& vecbyMesBodyData,
|
||||
int& iRecCounter,
|
||||
|
@ -184,7 +187,7 @@ protected:
|
|||
int& iPos,
|
||||
const QByteArray& sStringUTF8 );
|
||||
|
||||
uint32_t GetValFromStream ( const CVector<uint8_t>& vecIn,
|
||||
static uint32_t GetValFromStream ( const CVector<uint8_t>& vecIn,
|
||||
int& iPos,
|
||||
const int iNumOfBytes );
|
||||
|
||||
|
|
Loading…
Reference in a new issue