Microsoft DirectX 9.0

Host Migration

While the host must be one of the initial members of the session, they may choose to leave before session is finished. When the host leaves the session, there are two possible outcomes:

Sessions may or may not permit host migration. To enable host migration, the session organizer must set the DPNSESSION_MIGRATE_HOST flag in the dwFlags member of the DPN_APPLICATION_DESC structure when they set up the game. If this flag is not set, the session terminates when the host leaves.

If the DPNSESSION_MIGRATE_HOST flag is set, the host can still force the session to terminate by calling IDirectPlay8Peer::TerminateSession.

If DPNSESSION_MIGRATE_HOST flag is set and the host leaves the session, Microsoft?DirectPlay?will select a new session host. All remaining session members will receive a DPN_MSGID_HOST_MIGRATE message that includes the identifier (ID) of the new host.

© 2002 Microsoft Corporation. All rights reserved.