Options for Hosting, Joining, and Deleting Games
These constants are used to control games. You use these constants in theinFlags
parameter of theNSpGame_Host
,NSpGame_Join
, andNSpGame_Delete
functions.
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_Host
advertises the game on the protocols in the protocol list.kNSpGameFlag_ForceTerminateGame
- When the host calls
NSpGame_Delete
with 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_Delete
by the host will cause NetSprocket to negotiate a new host.