nn::nex::HostMigrationExtension Class

Syntax

class HostMigrationExtension

Description

Allows use of host migration extensions.

If the host migration extension package is used and the session host migrates within a P2P session, an appropriate call is made to the MatchMakingClient::UpdateSessionHost function for the relevant matchmaking session. This allows a host registered with the game server to be easily synchronized with the host of a P2P session.

The following procedure shows how to use the host migration extension package.

(1) In the .ddl file, include #use ‹NetZ/src/Core/HostMigration/HostMigrationExt.ddl›.
(2) Generate a NetZ object instance and then execute the HostMigrationExtension::Register function before generating or joining a P2P session.
(3) Generate a HostMigrationCallback instance using the generated MatchmakeExtensionClient.
(4) Generate or join a P2P session.
(5) Use the HostMigrationCallback::Register function to register the ID of the gathering just joined.
The host migration extension package can be used when the network topology is anything other than ClientServer.

Member Functions

S Register Registers the host migration extension package with NetZ.
S Disable Disables the host migration extension package for NetZ.

See Also

HostMigrationCallback

Revision History

2011/01/27
Initial version.

CONFIDENTIAL