timesync.h

Go to the documentation of this file.
00001 
00025 #include <SDL_types.h>
00026 
00065 enum TSYNC_STATE {
00070     TIMESYNC_IDLE,
00075     TIMESYNC_INPROG,
00080     TIMESYNC_FINISHED,
00085     TIMESYNC_POOR,
00090     TIMESYNC_ERROR
00091 };
00092 
00097 struct TimeSample_t {
00103     double latency;
00108     double delta;
00109 };
00110 
00111 typedef struct TimeSample_t  TimeSample;
00112 
00117 extern TimeSample timeSyncResults;
00122 extern Sint32 timeDelta;
00126 extern int timeSyncState;
00127 
00133 void StartClientTimeSync();
00134 
00143 Bool StartServerTimeSync();
00144 
00150 void StopServerTimeSync();
00151 

Generated on Mon May 28 04:41:39 2007 for Retro Tank Super Attack by  doxygen 1.5.2