Microsoft DirectX 8.1 (Visual Basic) |
As host, the server is responsible for managing the course of the session. The details will depend on how the application is designed, but a session host's duties include, at a minimum,:
When a player attempts to join a session, DirectPlay calls the host's DirectPlay8Event.IndicateConnectmethod. To accept the player into the session set fRejectMsg to False. Setting fRejectMsg to any other value rejects the request. In either case, DirectPlay calls the player's DirectPlay8Event.ConnectComplete method with the response to the request.
The host can remove a player from the session by calling DirectPlay8Server.DestroyClient.