ACPlayer_tracker/include/server_structs.h

33 lines
1.4 KiB
C

#ifndef SERVER_STRUCTS_H
#define SERVER_STRUCTS_H
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))
int 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.
int 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.
int operationId;
} __attribute__((packed));
#endif // SERVER_STRUCTS_H