peerGetPlayerInfo

GameSpy SDK

peerGetPlayerInfo

Retrieve a local player's IP and profile ID.

void peerGetPlayerInfo(
PEER peer,
const gsi_char * nick,
peerGetPlayerInfoCallback callback,
void * param,
PEERBool blocking );
RoutineRequired HeaderDistribution
peerGetPlayerInfo<peer.h>SDKZIP

Parameters

peer
[in] Initialized peer object.
nick
[in] Chat nickname of the target player.
callback
[in] Callback function to be called when the operation completes.
param
[in] Pointer to user data. This is optional and will be passed unmodified to the callback function.
blocking
[in] When set to PEERTrue this function will not return until the operation has completed.

Remarks

The peerGetPlayerInfo function queries the chat server for the local player's IP and profile ID. The information will be available once the function is successful and the callback gets called. The callback will have both the profileID and IP address of the local player.

Unicode Mappings

RoutineGSI_UNICODE Not DefinedGSI_UNICODE Defined
peerGetPlayerInfopeerGetPlayerInfoApeerGetPlayerInfoW

peerGetPlayerInfoW and peerGetPlayerInfoA are UNICODE and ANSI mapped versions of peerGetPlayerInfo. The arguments of peerGetPlayerInfoA are ANSI strings; those of peerGetPlayerInfoW are wide-character strings.

Section Reference: Gamespy Peer SDK

See Also: peerGetPlayerInfoCallback