peerQRTeamKeyCallback

GameSpy SDK

peerQRTeamKeyCallback

Callback is used to get values for any team keys the game is reporting.

typedef void (*peerQRTeamKeyCallback)(
PEER peer,
int key,
int index,
qr2_buffer_t buffer,
void * param );
RoutineRequired HeaderDistribution
peerQRTeamKeyCallback<peer.h>SDKZIP

Parameters

peer
[in] Initialized peer object
key
[in] The key that will be returned
index
[in] The array index of the team requested
buffer
[in] The Qr2 buffer for data
param
[in] Pointer to user data. This is optional and will be passed unmodified to the callback function.

Remarks

The peerQRTeamKeyCallback is called while hosting a game to report values for team keys. For example usage see the PeerTest sample. For a detailed explanation of how server reporting works, see the Query & Reporting 2 SDK documentation.
Peer does not report any team keys. The application is responsible for reporting any team keys. Any keys the application reports must be registered with the peerQRKeyListCallback() (see below). The number of teams is set with the peerQRCountCallback() see below).

Section Reference: Gamespy Peer SDK