peerGlobalKeyChangedCallback

GameSpy SDK

peerGlobalKeyChangedCallback

Called when a new value becomes available for a global watch key.

typedef void (*peerGlobalKeyChangedCallback)(
PEER peer,
const gsi_char * nick,
const gsi_char * key,
const gsi_char * value,
void * param );
RoutineRequired HeaderDistribution
peerGlobalKeyChangedCallback<peer.h>SDKZIP

Parameters

peer
[in] Initialized peer object
nick
[in] The player's nickname
key
[in] The name of this key
value
[in] The value of this key
param
[in] Pointer to user data. This is optional and will be passed unmodified to the callback function.

Remarks

The peerGlobalKeyChangedCallback is called for watch keys when a room is joined, for watch keys when another player joins, and for any newly set watch keys.

Unicode Mappings

RoutineGSI_UNICODE Not DefinedGSI_UNICODE Defined
peerGlobalKeyChangedCallbackpeerGlobalKeyChangedCallbackApeerGlobalKeyChangedCallbackW

peerGlobalKeyChangedCallbackW and peerGlobalKeyChangedCallbackA are UNICODE and ANSI mapped versions of peerGlobalKeyChangedCallback. The arguments of peerGlobalKeyChangedCallbackA are ANSI strings; those of peerGlobalKeyChangedCallbackW are wide-character strings.

Section Reference: Gamespy Peer SDK