Microsoft DirectX 8.1 (Visual Basic) |
When the session is over, the host should terminate the session by calling DirectPlay8Peer.TerminateSession. This method terminates the session even if host-migration is enabled. Microsoft® DirectPlay® will notify all session members by calling their DirectPlay8Event.TerminateSession method. You should then perform any necessary cleanup. To start another session, you must first call DirectPlay8Peer.Close, and then DirectPlay8Peer.RegisterMessageHandler.
If you registered your application as available for connection by calling DirectPlay8LobbiedApplication.SetAppAvailable a lobby client can offer to connect you to a new session by calling your DirectPlay8LobbyEvent.Connect method. You must have first called DirectPlay8Peer.Close and DirectPlay8.RegisterMessageHandler.