#ifndef SERVER_STRUCTS_H #define SERVER_STRUCTS_H #include struct handshake { // [not used in the current Remote Telemtry version by AC] // In future versions it will identify the platform type of the client. // This will be used to adjust a specific behaviour for each platform. (eIPadDevice for now (1)) int32_t identifier; // [not used in the current Remote Telemtry version by AC] // In future version this field will identify the AC Remote Telemetry version that the device expects to speak with. int32_t version; // This is the type of operation required by the client. // The following operations are now available: // ---------------------------------------------------------------- // HANDSHAKE = 0 : // This operation identifier must be set when the client wants to start the comunication. // // SUBSCRIBE_UPDATE = 1 : // This operation identifier must be set when the client wants to be updated from the specific ACServer. // // SUBSCRIBE_SPOT = 2 : // This operation identifier must be set when the client wants to be updated from the specific ACServer just for SPOT Events (e.g.: the end of a lap). // // DISMISS = 3 : // This operation identifier must be set when the client wants to leave the comunication with ACServer. int32_t operationId; } __attribute__((packed)); struct handshackerResponse{ // is the name of the car that the player is driving on the AC Server char carName[50]; // is the name of the driver running on the AC Server char driverName[50]; // for now is just 4242, this code will identify different status, // as “NOT AVAILABLE” for connection int32_t identifier; // for now is set to 1, this will identify the version running on the AC Server int32_t version; // is the name of the track on the AC Server char trackName[50]; // is the track configuration on the AC Server char trackConfig[50]; } __attribute__((packed)); #endif // SERVER_STRUCTS_H