peerChangeNickCallback

GameSpy SDK

peerChangeNickCallback

Callback called after peerChangeNick attempt is finished.

typedef void (*peerChangeNickCallback)(
PEER peer,
PEERBool success,
const gsi_char * oldNick,
const gsi_char * newNick,
void * param );
RoutineRequired HeaderDistribution
peerChangeNickCallback<peer.h>SDKZIP

Parameters

peer
[in] Initialized peer object
success
[in] PEERTrue if successful, PEERFalse if failure
oldNick
[in] The nickname to be corrected or verified
newNick
[in] Corrected nickname. May be the same as oldNick if no issues are detected
param
[in] Pointer to user data. This is optional and will be passed unmodified to the callback function.

Remarks

If success is true, the attempt succeeded, and "newNick" is the local user’s new nickname. If success if false, the attempt failed, and the local user’s nick is still "oldNick".

Unicode Mappings

RoutineGSI_UNICODE Not DefinedGSI_UNICODE Defined
peerChangeNickCallbackpeerChangeNickCallbackApeerChangeNickCallbackW

peerChangeNickCallbackW and peerChangeNickCallbackA are UNICODE and ANSI mapped versions of peerChangeNickCallback. The arguments of peerChangeNickCallbackA are ANSI strings; those of peerChangeNickCallbackW are wide-character strings.

Section Reference: Gamespy Peer SDK