peerMessagePlayer

GameSpy SDK

peerMessagePlayer

Send a message to the specified player.

void peerMessagePlayer(
PEER peer,
const gsi_char * nick,
const gsi_char * message,
MessageType messageType );
RoutineRequired HeaderDistribution
peerMessagePlayer<peer.h>SDKZIP

Parameters

peer
[in] Initialized peer object.
nick
[in] Nickname of the player who should receive the message.
message
[in] The message to send.
messageType
[in] The type of message to send, most commonly NormalMessage or ActionMessage.

Remarks

The peerMessagePlayer function sends a message to another player. As long as the nick is valid and matches up with a player, that player will get the message in a peerPlayerMessageCallback().
This function only works while connected to the chat server. The player messaged does not have to be using the Peer SDK.

Unicode Mappings

RoutineGSI_UNICODE Not DefinedGSI_UNICODE Defined
peerMessagePlayerpeerMessagePlayerApeerMessagePlayerW

peerMessagePlayerW and peerMessagePlayerA are UNICODE and ANSI mapped versions of peerMessagePlayer. The arguments of peerMessagePlayerA are ANSI strings; those of peerMessagePlayerW are wide-character strings.

Section Reference: Gamespy Peer SDK