|
84 | 84 | #define PROTMESSID_CLM_REGISTER_SERVER_RESP 1016 // status of server registration request |
85 | 85 | #define PROTMESSID_CLM_REGISTER_SERVER_EX 1017 // register server with extended information |
86 | 86 | #define PROTMESSID_CLM_RED_SERVER_LIST 1018 // reduced server list |
| 87 | +#define PROTMESSID_CLM_TCP_SUPPORTED 1019 // TCP is supported |
87 | 88 |
|
88 | 89 | // special IDs |
89 | 90 | #define PROTMESSID_SPECIAL_SPLIT_MESSAGE 2001 // a container for split messages |
@@ -154,6 +155,7 @@ class CProtocol : public QObject |
154 | 155 | void CreateCLReqConnClientsListMes ( const CHostAddress& InetAddr ); |
155 | 156 | void CreateCLChannelLevelListMes ( const CHostAddress& InetAddr, const CVector<uint16_t>& vecLevelList, const int iNumClients ); |
156 | 157 | void CreateCLRegisterServerResp ( const CHostAddress& InetAddr, const ESvrRegResult eResult ); |
| 158 | + void CreateCLTcpSupportedMes ( const CHostAddress& InetAddr ); |
157 | 159 |
|
158 | 160 | static int GetBodyLength ( const CVector<uint8_t>& vecbyData ); |
159 | 161 |
|
@@ -288,6 +290,7 @@ class CProtocol : public QObject |
288 | 290 | bool EvaluateCLReqConnClientsListMes ( const CHostAddress& InetAddr, CTcpConnection* pTcpConnection ); |
289 | 291 | bool EvaluateCLChannelLevelListMes ( const CHostAddress& InetAddr, const CVector<uint8_t>& vecData ); |
290 | 292 | bool EvaluateCLRegisterServerResp ( const CHostAddress& InetAddr, const CVector<uint8_t>& vecData ); |
| 293 | + bool EvaluateCLTcpSupportedMes ( const CHostAddress& InetAddr ); |
291 | 294 |
|
292 | 295 | int iOldRecID; |
293 | 296 | int iOldRecCnt; |
@@ -354,4 +357,5 @@ public slots: |
354 | 357 | void CLReqConnClientsList ( CHostAddress InetAddr, CTcpConnection* pTcpConnection ); |
355 | 358 | void CLChannelLevelListReceived ( CHostAddress InetAddr, CVector<uint16_t> vecLevelList ); |
356 | 359 | void CLRegisterServerResp ( CHostAddress InetAddr, ESvrRegResult eStatus ); |
| 360 | + void CLTcpSupported ( CHostAddress InetAddr ); |
357 | 361 | }; |
0 commit comments