Table of Contents

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

int

RTT

public readonly DoubleStats RTT

Field Value

DoubleStats

RemoteUserData

public int* RemoteUserData

Field Value

int*

Properties

BytesIn

public DataAccumulator BytesIn { get; }

Property Value

DataAccumulator

BytesOut

public DataAccumulator BytesOut { get; }

Property Value

DataAccumulator

EndPoint

public IEndPoint EndPoint { get; }

Property Value

IEndPoint

Id

public int Id { get; }

Property Value

int

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

float

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

int

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

float

ReplicateEntities

public bool ReplicateEntities { get; set; }

Property Value

bool

TransportConnection

public TransportConnection TransportConnection { get; }

Property Value

TransportConnection

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 byte
data byte*
length int
deliveryMethod TransportDeliveryMethod

SendData(byte, byte[], int, TransportDeliveryMethod)

public void SendData(byte id, byte[] data, int length, TransportDeliveryMethod deliveryMethod)

Parameters

id byte
data byte[]
length int
deliveryMethod TransportDeliveryMethod