Mania++
 All Classes Functions Variables Pages
GbxStructs.h
1 #ifndef GBXSTRUCTS_H_
2 #define GBXSTRUCTS_H_
3 
4 //* GbxFirstResponse
9 {
10  short size;
11 };
12 
13 //* GbxQueryResponse
18 {
19  int size;
20  int handle;
21 };
22 
23 //* GbxError
27 struct GbxError
28 {
29  int number = 0;
30  std::string message = "";
31 };
32 
33 #endif // GBXSTRUCTS_H_
Response received after a query is sent.
Definition: GbxStructs.h:17
int size
Size in bytes of the query response.
Definition: GbxStructs.h:19
short size
Size in bytes of the protocol message (usually 11).
Definition: GbxStructs.h:10
int number
Number of the error (default: 0, no error).
Definition: GbxStructs.h:29
std::string message
Error message.
Definition: GbxStructs.h:30
Response received on handshake.
Definition: GbxStructs.h:8
Stores error details from the communication with the server.
Definition: GbxStructs.h:27
int handle
Handle identifier of response message.
Definition: GbxStructs.h:20