00001 00025 #ifndef _client_h_ 00026 #define _client_h_ 00027 00028 #include "hostlookup.h" 00029 #include "player.h" 00030 #include <SDL_types.h> 00031 00032 typedef struct GameConfigId_t GameConfigId; 00033 typedef struct ClientData_t ClientData; 00034 00040 struct ClientData_t { 00045 ClientData *configNext; 00050 ClientData *configPrev; 00055 UpdateTimes sentUpdateTimes[MAX_PLAYERS]; 00062 Uint32 disconnTime; 00066 SocketAddr addr; 00070 Uint32 randId; 00074 Uint16 configFirst; 00079 Uint16 configAckCnt; 00087 Uint8 cid; 00088 union { 00093 Uint8 flags; 00094 struct { 00099 Bool contact : 1; 00103 Bool active : 1; 00107 Bool disconn : 1; 00111 Bool bcast : 1; 00116 Bool mcast : 1; 00120 Bool hasGameOpts : 1; 00121 }; 00122 }; 00123 }; 00124 00132 extern ClientData *clients; 00133 00138 extern Uint32 clientRandId; 00139 00140 #endif 00141