SendGameSnapShot

GameSpy SDK

SendGameSnapShot

Sends a snapshot of information about the current game.

int SendGameSnapShot(
statsgame_t game,
const gsi_char * snapshot,
int final );
RoutineRequired HeaderDistribution
SendGameSnapShot<gstats.h>SDKZIP

Return Value

Returns GE_NOERROR if successful; otherwise, one of the other GE_ error values. See Remarks.

Parameters

game
[in] The game to send a snapshot for. If NULL, uses most recently created game.
snapshot
[in] The snapshot to send. If you are using buckets, you can pass in NULL.
final
[in] SNAP_UPDATE if the game is in progress; SNAP_FINAL if this is the final snapshot.

Remarks

If bucket based logging is enabled the snapshot will be generated from the buckets; otherwise, you should provide it in "snapshot".

Return values include:
GE_NOERROR: The update was sent, or disk logging is enabled and the game was logged.
GE_DATAERROR: If game is NULL and the last game created by NewGame failed
GE_NOCONNECT: If the connection is lost and disk logging is disabled.

Section Reference: Gamespy Stats and Tracking SDK