C# Class UnityEngine.Networking.HostTopology

ファイルを表示 Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Methods

Method Description
AddSpecialConnectionConfig ( ConnectionConfig config ) : int

Add special connection to topology (for example if you need to keep connection to standalone chat server you will need to use this function). Returned id should be use as one of parameters (with ip and port) to establish connection to this server.

GetSpecialConnectionConfig ( int i ) : ConnectionConfig

Return reference to special connection config. Parameters of this config can be changed.

HostTopology ( ConnectionConfig defaultConfig, int maxDefaultConnections ) : System

Create topology.

Private Methods

Method Description
HostTopology ( ) : System

Method Details

AddSpecialConnectionConfig() public method

Add special connection to topology (for example if you need to keep connection to standalone chat server you will need to use this function). Returned id should be use as one of parameters (with ip and port) to establish connection to this server.

public AddSpecialConnectionConfig ( ConnectionConfig config ) : int
config ConnectionConfig Connection config for special connection.
return int

GetSpecialConnectionConfig() public method

Return reference to special connection config. Parameters of this config can be changed.

public GetSpecialConnectionConfig ( int i ) : ConnectionConfig
i int Config id.
return ConnectionConfig

HostTopology() public method

Create topology.

public HostTopology ( ConnectionConfig defaultConfig, int maxDefaultConnections ) : System
defaultConfig ConnectionConfig Default config.
maxDefaultConnections int Maximum default connections.
return System