nn::nex::NetZ::SetNetworkTopology Member Function

Syntax

static void SetNetworkTopology(
     NetworkTopology::Mode eSelectedTopology
);

Parameters

Name Description
eSelectedTopology Network topology established for the P2P session. This parameter takes Peer2Peer, ClientServer, or Hybrid.

Return Values

None.

Description

Defines the network topology type established by NetZ.

Use this function before creating a NetZ facade object to establish a NetZ network topology using the selected topology type.

The default network topology is a typical P2P network where all stations participating in the session can connect directly to each other. You can use this command to specify that NetZ should establish a server-client network. The session master in a server-client network can send game messages to all participating clients. For hybrid networks, communications between stations that cannot connect directly with each other go through the session master based on the P2P network.

Revision History

2011/05/24
Initial version.

CONFIDENTIAL