C# Class UnityEngine.Networking.NetworkClient

High level UNET client.

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

Protected Properties

Свойство Type Description
m_AsyncConnect ConnectState
m_Connection NetworkConnection

Méthodes publiques

Méthode Description
Configure ( ConnectionConfig config, int maxConnections ) : bool

This configures the transport layer settings for a client.

Configure ( HostTopology topology ) : bool

This configures the transport layer settings for a client.

Connect ( EndPoint secureTunnelEndPoint ) : void
Connect ( MatchInfo matchInfo ) : void
Connect ( string serverIp, int serverPort ) : void

Connect client to a NetworkServer instance.

NetworkClient ( ) : System

Creates a new NetworkClient instance.

NetworkClient ( NetworkConnection conn ) : System

Private Methods

Méthode Description
AddClient ( NetworkClient client ) : void

Method Details

Configure() public méthode

This configures the transport layer settings for a client.

public Configure ( ConnectionConfig config, int maxConnections ) : bool
config ConnectionConfig Transport layer configuration object.
maxConnections int The maximum number of connections to allow.
Résultat bool

Configure() public méthode

This configures the transport layer settings for a client.

public Configure ( HostTopology topology ) : bool
topology HostTopology Transport layer topology object.
Résultat bool

Connect() public méthode

public Connect ( EndPoint secureTunnelEndPoint ) : void
secureTunnelEndPoint System.Net.EndPoint
Résultat void

Connect() public méthode

public Connect ( MatchInfo matchInfo ) : void
matchInfo UnityEngine.Networking.Match.MatchInfo
Résultat void

Connect() public méthode

Connect client to a NetworkServer instance.

public Connect ( string serverIp, int serverPort ) : void
serverIp string Target IP address or hostname.
serverPort int Target port number.
Résultat void

NetworkClient() public méthode

Creates a new NetworkClient instance.

public NetworkClient ( ) : System
Résultat System

NetworkClient() public méthode

public NetworkClient ( NetworkConnection conn ) : System
conn NetworkConnection
Résultat System

Property Details

m_AsyncConnect protected_oe property

protected ConnectState m_AsyncConnect
Résultat ConnectState

m_Connection protected_oe property

protected NetworkConnection,UnityEngine.Networking m_Connection
Résultat NetworkConnection