peerSetRoomName
Set the name of a room. Local client must be the host.
- void peerSetRoomName(
- PEER peer,
- RoomType roomType,
- const gsi_char * name );
| Routine | Required Header | Distribution |
|---|---|---|
| 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
| Routine | GSI_UNICODE Not Defined | GSI_UNICODE Defined |
|---|---|---|
| peerSetRoomName | peerSetRoomNameA | peerSetRoomNameW |
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