timesync.h File Reference

Interface to the Time Synchronization module. More...

#include <SDL_types.h>

Include dependency graph for timesync.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  TimeSample_t
 Data from a single time sync sample. More...


typedef TimeSample_t TimeSample




void StartClientTimeSync ()
 Starts the time synchronization process on the I/O Thread.
Bool StartServerTimeSync ()
 Starts the time synchronization server on a separate thread.
void StopServerTimeSync ()
 Stops the time synchronization server and returns the time sync state to TSYNC_STATE::TIMESYNC_IDLE.


Sint32 timeDelta
 The time delta used to produce common game time.
TimeSample timeSyncResults
 The final results of the last time sync operation that ended with a state of either TSYNC_STATE::TIMESYNC_FINISHED or TSYNC_STATE::TIMESYNC_POOR.
int timeSyncState
 The state of the time synchronization system; a value from TSYNC_STATE.

Detailed Description

Interface to the Time Synchronization module.

Jeff Jackowski (jeffj@ro.com)
Copyright (C) 2007 Jeff Jackowski

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Or visit their website at: http://www.gnu.org/

Definition in file timesync.h.

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