7 * --- Protocol structure (binary part) ---
29 static char magic[8] = "STGCONF2";
33 E_NET_ERROR, // Network error (i.e. - timeout)
34 E_PROTO_ERROR, // Protocol error (invalid magic, unsupported version, etc.)
35 E_INVALID_LOGIN,// Invalid login
36 E_PERMISSIONS // Operation not permitted
44 struct REQUESTHEADER {
50 uint32_t dataSize; // Can't be 0
53 struct RESPONSEHEADER {
55 uint32_t errorMessageSize; // May be 0
56 uint32_t dataSize; // May be 0