Class NetworkConnection
- Namespace
- Netick
- Assembly
- Netick.dll
public abstract class NetworkConnection : NetworkPlayer
- Inheritance
-
NetworkConnection
- Derived
- Inherited Members
Fields
LocalUserData
public int* LocalUserData
Field Value
- int*
MaxOutgoingDataPerTickInBytes
public int MaxOutgoingDataPerTickInBytes
Field Value
RTT
public readonly DoubleStats RTT
Field Value
RemoteUserData
public int* RemoteUserData
Field Value
- int*
Properties
BytesIn
public DataAccumulator BytesIn { get; }
Property Value
BytesOut
public DataAccumulator BytesOut { get; }
Property Value
EndPoint
public IEndPoint EndPoint { get; }
Property Value
Id
public int Id { get; }
Property Value
InPacketLoss
Estimation of incoming packets that are being lost. Value ranges between 0.0 and 1.0, with 1.0 meaning all packets are being lost.
public float InPacketLoss { get; }
Property Value
InPacketLossBurst
The longest inward packet loss burst (more than 2 packets lost in a row) in the last 10 seconds.
public int InPacketLossBurst { get; }
Property Value
OutPacketLoss
Estimation of outgoing packets that are being lost. Value ranges between 0.0 and 1.0, with 1.0 meaning all packets are being lost.
public float OutPacketLoss { get; }
Property Value
ReplicateEntities
public bool ReplicateEntities { get; set; }
Property Value
TransportConnection
public TransportConnection TransportConnection { get; }
Property Value
Methods
~NetworkConnection()
protected ~NetworkConnection()
SendData(byte, byte*, int, TransportDeliveryMethod)
Sends data to this connection.
Note: the low-level transport must implement SendUserData(IntPtr, int, TransportDeliveryMethod) for this method to have an effect.
public void SendData(byte id, byte* data, int length, TransportDeliveryMethod deliveryMethod)
Parameters
id
bytedata
byte*length
intdeliveryMethod
TransportDeliveryMethod
SendData(byte, byte[], int, TransportDeliveryMethod)
public void SendData(byte id, byte[] data, int length, TransportDeliveryMethod deliveryMethod)
Parameters
id
bytedata
byte[]length
intdeliveryMethod
TransportDeliveryMethod