C# Class BeardedManStudios.Network.DefaultClientTCP

Inheritance: TCPProcess
Exibir arquivo Open project: drakelinglabs/unityarmada Class Usage Examples

Public Methods

Method Description
Connect ( string hostAddress, ushort port ) : void
Disconnect ( ) : void
Disconnect ( NetworkingPlayer player, string reason = "" ) : void
GetNewPlayerUpdates ( ) : void

Get all the new player updates

Send ( byte data, int length, object endpoint = null ) : void
TimeoutDisconnect ( ) : void
Write ( NetworkingPlayer player, NetworkingStream stream ) : void
Write ( NetworkingStream stream ) : void

Private Methods

Method Description
ReadAsync ( ) : void
ThreadedConnect ( object hostAndPort ) : void

Method Details

Connect() public method

public Connect ( string hostAddress, ushort port ) : void
hostAddress string
port ushort
return void

Disconnect() public method

public Disconnect ( ) : void
return void

Disconnect() public method

public Disconnect ( NetworkingPlayer player, string reason = "" ) : void
player NetworkingPlayer
reason string
return void

GetNewPlayerUpdates() public method

Get all the new player updates
public GetNewPlayerUpdates ( ) : void
return void

Send() public method

public Send ( byte data, int length, object endpoint = null ) : void
data byte
length int
endpoint object
return void

TimeoutDisconnect() public method

public TimeoutDisconnect ( ) : void
return void

Write() public method

public Write ( NetworkingPlayer player, NetworkingStream stream ) : void
player NetworkingPlayer
stream NetworkingStream
return void

Write() public method

public Write ( NetworkingStream stream ) : void
stream NetworkingStream
return void