Previous Book Contents Book Index Next

Inside Macintosh: Apple Game Sprockets Guide /
Chapter 4 - NetSprocket / NetSprocket Reference
Constants


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 the to 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.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996