Microsoft DirectX 8.1 (Visual Basic)

Voice Host Migration

In a peer-to-peer Microsoft® DirectPlay® network session, one client of the networking session acts as host. If that host exits the session or stops responding for any reason, another client in the session is elected as host.

In a DirectPlay voice session, a similar process of host migration occurs in peer-to-peer voice sessions, except that the voice host migrates independently of the DirectPlay network session. The voice host migrates when the server calls DirectPlayVoiceServer8.StopSession or if the voice host stops responding.

When the voice host migrates, the DirectPlayVoiceEvent8.HostMigrated method is called on each of the clients. If the local client has become the new voice session host, the NewServer parameter will point to the newly created DirectPlayVoiceServer8 object that can be used by the local client for providing host services. If the local client is not the new host, the NewServer parameter will be NULL.