C# Class UnityEngine.Networking.HostTopology

Afficher le fichier Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
HostTopology ( ) : System

Method Details

AddSpecialConnectionConfig() public méthode

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.
Résultat int

GetSpecialConnectionConfig() public méthode

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

public GetSpecialConnectionConfig ( int i ) : ConnectionConfig
i int Config id.
Résultat ConnectionConfig

HostTopology() public méthode

Create topology.

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