Reserved Player IDs for Network Messages
These constants are used to identify player IDs that are reserved for message delivery. Specify one of these special IDs in theto
field of a message structure.
enum { kNSpAllPlayers = 0x00000000, kNSpServerOnly = 0xFFFFFFFF };Constant descriptions
- kNSpAllPlayers
- Send the message to all players.
- kNSpServerOnly
- Send the message to the player currently hosting the game.
- Note
- It is possible for the host to change during the course of a game. It is aso possible for a host to not have a player ID, because someone may host a game without participating as a player. Therefore you should not use a player ID to send a message to the host. Instead, you should use kNSpServerOnly reserved for a host.