peerRoomModeChangedCallback

GameSpy SDK

peerRoomModeChangedCallback

Called when a room's mode changes.

typedef void (*peerRoomModeChangedCallback)(
PEER peer,
RoomType roomType,
CHATChannelMode * mode,
void * param );
RoutineRequired HeaderDistribution
peerRoomModeChangedCallback<peer.h>SDKZIP

Parameters

peer
[in] Initialized peer object
roomType
[in] Can be either TitleRoom, GroupRoom or StagingRoom.
mode
[in] The current mode for this room
param
[in] Pointer to user data. This is optional and will be passed unmodified to the callback function.

Remarks

The peerRoomModeChangedCallback is called as a host of the specified room changes a mode for the room. See chat.h in the Chat SDK for more information on channel modes.

Section Reference: Gamespy Peer SDK