Class NetworkPeer
- Namespace
- Netick
- Assembly
- Netick.dll
public abstract class NetworkPeer : NetworkPlayer
- Inheritance
-
NetworkPeer
- Derived
-
- Inherited Members
-
Fields
Transport
public readonly NetworkTransport Transport
Field Value
- NetworkTransport
Properties
InKBps
public abstract float InKBps { get; }
Property Value
- float
OutKBps
public abstract float OutKBps { get; }
Property Value
- float
Methods
OnConnectFailed(ConnectionFailedReason)
public abstract void OnConnectFailed(ConnectionFailedReason reason)
Parameters
reason
ConnectionFailedReason
OnConnectRequest(byte[], int, IEndPoint)
public virtual bool OnConnectRequest(byte[] data, int length, IEndPoint source)
Parameters
data
byte[]
length
int
source
IEndPoint
Returns
- bool
OnConnected(TransportConnection)
public abstract void OnConnected(TransportConnection peer)
Parameters
peer
TransportConnection
OnDisconnected(TransportConnection, TransportDisconnectReason)
public abstract void OnDisconnected(TransportConnection peer, TransportDisconnectReason transportDisconnectReason)
Parameters
peer
TransportConnection
transportDisconnectReason
TransportDisconnectReason
Receive(TransportConnection, BitBuffer, TransportDeliveryMethod)
public abstract void Receive(TransportConnection connection, BitBuffer reader, TransportDeliveryMethod transportDeliveryMethod = TransportDeliveryMethod.Unreliable)
Parameters
connection
TransportConnection
reader
BitBuffer
transportDeliveryMethod
TransportDeliveryMethod