peerPlayerInfoCallback
Callback when the IP and ProfileID for this player has just been received.
- typedef void (*peerPlayerInfoCallback)(
- PEER peer,
- RoomType roomType,
- const gsi_char * nick,
- unsigned int IP,
- int profileID,
- void * param );
Routine | Required Header | Distribution |
---|---|---|
peerPlayerInfoCallback | <peer.h> | SDKZIP |
Parameters
- peer
- [in] Initialized peer object
- roomType
- [in] Can be either TitleRoom, GroupRoom or StagingRoom.
- nick
- [in] The player's chat nickname
- IP
- [in] The player's IP address in string form: "xxx.xxx.xxx.xxx"
- profileID
- [in] The player's Profile ID
- param
- [in] Pointer to user data. This is optional and will be passed unmodified to the callback function.
Remarks
After joining a room, the peerPlayerInfoCallback function will be called for each player in the room who is using Peer with his IP and profile ID. Then it will be called one more time with nick set to NULL. This info is immediately available for anyone who joines the room after the local player.
Unicode Mappings
Routine | GSI_UNICODE Not Defined | GSI_UNICODE Defined |
---|---|---|
peerPlayerInfoCallback | peerPlayerInfoCallbackA | peerPlayerInfoCallbackW |
peerPlayerInfoCallbackW and peerPlayerInfoCallbackA are UNICODE and ANSI mapped versions of peerPlayerInfoCallback. The arguments of peerPlayerInfoCallbackA are ANSI strings; those of peerPlayerInfoCallbackW are wide-character strings.
Section Reference: Gamespy Peer SDK