peerMessageRoom

GameSpy SDK

peerMessageRoom

Send a message to the specified room.

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

Parameters

peer
[in] Initialized peer object.
roomType
[in] Can be either TitleRoom, GroupRoom or StagingRoom.
message
[in] The message to send.
messageType
[in] The type of message to send, most commonly NormalMessage or ActionMessage.

Remarks

The peerMessageRoom function sends a message to a room. All the players in the room, including the local player, will receive a peerRoomMessageCallback() with the message. This function only works if the local user is in the room he is trying to message. The peer object must be connected and a title must be set for this function to successfully work.

Unicode Mappings

RoutineGSI_UNICODE Not DefinedGSI_UNICODE Defined
peerMessageRoompeerMessageRoomApeerMessageRoomW

peerMessageRoomW and peerMessageRoomA are UNICODE and ANSI mapped versions of peerMessageRoom. The arguments of peerMessageRoomA are ANSI strings; those of peerMessageRoomW are wide-character strings.

Section Reference: Gamespy Peer SDK