Options for Hosting, Joining, and Deleting Games
These constants are used to control games. You use these constants in theinFlagsparameter of theNSpGame_Host,NSpGame_Join, andNSpGame_Deletefunctions.
enum { kNSpGameFlag_DontAdvertise= 0x00000001, kNSpGameFlag_ForceTerminateGame= 0x00000002 };
kNSpGameFlag_DontAdvertise- When this flag is passed with
NSpGame_Host, the game object is created, but the game is not advertised on any protocols. By default, a call toNSpGame_Hostadvertises the game on the protocols in the protocol list.kNSpGameFlag_ForceTerminateGame- When the host calls
NSpGame_Deletewith this flag set, NetSprocket will end the game without attempting to find a host replacement. All the players will receive a message that the game has been ended, and any further calls from them will return an error. Normally, a call toNSpGame_Deleteby the host will cause NetSprocket to negotiate a new host.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help