peerSetRoomName

GameSpy SDK

peerSetRoomName

Set the name of a room.  Local client must be the host.

void peerSetRoomName(
PEER peer,
RoomType roomType,
const gsi_char * name );
RoutineRequired HeaderDistribution
peerSetRoomName<peer.h>SDKZIP

Parameters

peer
[in] Initialized peer object.
roomType
[in] Can be either TitleRoom, GroupRoom or StagingRoom.
name
[in] The new name.

Remarks

The peerSetRoomName function sets the name of a room you're hosting. The only RoomType currently supported is StagingRoom. This will only work if the player is hosting the room.

Unicode Mappings

RoutineGSI_UNICODE Not DefinedGSI_UNICODE Defined
peerSetRoomNamepeerSetRoomNameApeerSetRoomNameW

peerSetRoomNameW and peerSetRoomNameA are UNICODE and ANSI mapped versions of peerSetRoomName. The arguments of peerSetRoomNameA are ANSI strings; those of peerSetRoomNameW are wide-character strings.

Section Reference: Gamespy Peer SDK