C# Класс UnityEngine.Networking.HostTopology

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
HostTopology ( ) : System

Описание методов

AddSpecialConnectionConfig() публичный Метод

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.
Результат int

GetSpecialConnectionConfig() публичный Метод

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

public GetSpecialConnectionConfig ( int i ) : ConnectionConfig
i int Config id.
Результат ConnectionConfig

HostTopology() публичный Метод

Create topology.

public HostTopology ( ConnectionConfig defaultConfig, int maxDefaultConnections ) : System
defaultConfig ConnectionConfig Default config.
maxDefaultConnections int Maximum default connections.
Результат System