peerGetGlobalKeysCallback
Callback for peerGetPlayerGlobalKeys() and peerGetRoomGlobalKeys().
- typedef void (*peerGetGlobalKeysCallback)(
- PEER peer,
- PEERBool success,
- const gsi_char * nick,
- int num,
- const gsi_char ** keys,
- const gsi_char ** values,
- void * param );
Routine | Required Header | Distribution |
---|---|---|
peerGetGlobalKeysCallback | <peer.h> | SDKZIP |
Parameters
- peer
- [in] Initialized peer object
- success
- [in] PEERTrue if successful, PEERFalse if failure
- nick
- [in] The player's nickname
- num
- [in] Number of key/value pairs in the array
- keys
- [in] Array of key names whose values were retrieved
- values
- [in] Array of values retreived
- param
- [in] Pointer to user data. This is optional and will be passed unmodified to the callback function.
Remarks
Called with a player's global keys in response to either peerGetPlayerGlobalKeys() or peerGetRoomGlobalKeys().
Unicode Mappings
Routine | GSI_UNICODE Not Defined | GSI_UNICODE Defined |
---|---|---|
peerGetGlobalKeysCallback | peerGetGlobalKeysCallbackA | peerGetGlobalKeysCallbackW |
peerGetGlobalKeysCallbackW and peerGetGlobalKeysCallbackA are UNICODE and ANSI mapped versions of peerGetGlobalKeysCallback. The arguments of peerGetGlobalKeysCallbackA are ANSI strings; those of peerGetGlobalKeysCallbackW are wide-character strings.
Section Reference: Gamespy Peer SDK
See Also: peerGetPlayerGlobalKeys, peerGetRoomGlobalKeys