peerGetNick

GameSpy SDK

peerGetNick

Returns the chat nickname of the local client.

const gsi_char * peerGetNick(
PEER peer );
RoutineRequired HeaderDistribution
peerGetNick<peer.h>SDKZIP

Return Value

The chat nickname of the local user. NULL if not connected.

Parameters

peer
[in] Initialized peer object.

Remarks

The peerGetNick function returns the chat nickname of the local client. The peer object must be initialized and connected to a chat server. Otherwise a NULL is returned if not connected.

Unicode Mappings

RoutineGSI_UNICODE Not DefinedGSI_UNICODE Defined
peerGetNickpeerGetNickApeerGetNickW

peerGetNickW and peerGetNickA are UNICODE and ANSI mapped versions of peerGetNick. The arguments of peerGetNickA are ANSI strings; those of peerGetNickW are wide-character strings.

Section Reference: Gamespy Peer SDK