9 static const int READ_BLOCK_SIZE = 361;
10 static const int32_t HELLO_TOKEN = 0x00000004;
11 static const uint32_t LENGTH_OF_HELLO_TOKEN_MESSAGE = 3;
12 static const int32_t MAGIC_WORD = 0x72626f74;
14 static const int32_t SINGLE_WORD_READ = 0;
15 static const int32_t SINGLE_WORD_WRITE = 1;
16 static const int32_t MULTI_WORD_WRITE = 2;
17 static const int32_t MULTI_WORD_READ = 3;
18 static const int32_t PING = 5;
19 static const int32_t SET_SESSION_TIMEOUT = 6;
23 static const int32_t CLIENT_PROTOCOL_VERSION = 0x00000001;
25 static const int32_t READ_ACK = 1000;
26 static const int32_t WRITE_ACK = 1001;
27 static const int32_t PONG = 1005;
28 static const int32_t TOO_MUCH_DATA = -1010;
29 static const int32_t UNKNOWN_INSTRUCTION = -1040;
31 static const unsigned int DEFAULT_SERVER_PORT = 5001;
32 static const int32_t DEFAULT_CONNECTION_TIMEOUT = 10000;