C# Class UnityEngine.Networking.NetworkClient

High level UNET client.

Show file Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Protected Properties

Property Type Description
m_AsyncConnect ConnectState
m_Connection NetworkConnection

Public Methods

Method 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

Method Description
AddClient ( NetworkClient client ) : void

Method Details

Configure() public method

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.
return bool

Configure() public method

This configures the transport layer settings for a client.

public Configure ( HostTopology topology ) : bool
topology HostTopology Transport layer topology object.
return bool

Connect() public method

public Connect ( EndPoint secureTunnelEndPoint ) : void
secureTunnelEndPoint System.Net.EndPoint
return void

Connect() public method

public Connect ( MatchInfo matchInfo ) : void
matchInfo UnityEngine.Networking.Match.MatchInfo
return void

Connect() public method

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.
return void

NetworkClient() public method

Creates a new NetworkClient instance.

public NetworkClient ( ) : System
return System

NetworkClient() public method

public NetworkClient ( NetworkConnection conn ) : System
conn NetworkConnection
return System

Property Details

m_AsyncConnect protected property

protected ConnectState m_AsyncConnect
return ConnectState

m_Connection protected property

protected NetworkConnection,UnityEngine.Networking m_Connection
return NetworkConnection