Class Client
- Namespace
- Netick
- Assembly
- Netick.dll
public class Client : NetworkPeer
- Inheritance
-
Client
- Inherited Members
-
Constructors
Client(NetickEngine, NetworkTransport)
public Client(NetickEngine engine, NetworkTransport transport)
Parameters
engine
NetickEngine
transport
NetworkTransport
Fields
ConnectedServer
public readonly ClientConnection ConnectedServer
Field Value
- ClientConnection
Peer
public readonly NetworkPeer Peer
Field Value
- NetworkPeer
Properties
InKBps
public override float InKBps { get; }
Property Value
- float
IsConnected
public bool IsConnected { get; }
Property Value
- bool
OutKBps
public override float OutKBps { get; }
Property Value
- float
Methods
Connect(int, string, byte[], int)
public void Connect(int port, string ip, byte[] connectionData = null, int connectionDataLength = 0)
Parameters
port
int
ip
string
connectionData
byte[]
connectionDataLength
int
Disconnect()
OnConnectFailed(ConnectionFailedReason)
public override void OnConnectFailed(ConnectionFailedReason reason)
Parameters
reason
ConnectionFailedReason
OnConnected(TransportConnection)
public override void OnConnected(TransportConnection peer)
Parameters
peer
TransportConnection
OnDisconnected(TransportConnection, TransportDisconnectReason)
public override void OnDisconnected(TransportConnection peer, TransportDisconnectReason transportDisconnectReason)
Parameters
peer
TransportConnection
transportDisconnectReason
TransportDisconnectReason
Receive(TransportConnection, BitBuffer, TransportDeliveryMethod)
public override void Receive(TransportConnection connection, BitBuffer reader, TransportDeliveryMethod transportDeliveryMethod)
Parameters
connection
TransportConnection
reader
BitBuffer
transportDeliveryMethod
TransportDeliveryMethod