Property | Type | Description | |
---|---|---|---|
AgentID | UUID | ||
BytesSinceLastACK | int | ||
CircuitCode | uint | ||
CurrentPingSequence | byte | ||
CurrentSequence | int | ||
IsConnected | bool | ||
IsPaused | bool | ||
MapCatsToPriority | int[] | ||
NeedAcks | |||
PacketArchive | |||
PacketsReceived | int | ||
PacketsResent | int | ||
PacketsSent | int | ||
PendingAcks | ConcurrentQueue |
||
RTO | int | ||
RTTVAR | float | ||
RemoteEndPoint | |||
SRTT | float | ||
TickLastPacketReceived | int | ||
UnackedBytes | int |
Method | Description | |
---|---|---|
BackoffRTO ( ) : void |
Exponential backoff of the retransmission timeout, per section 5.5 of RFC 2988
|
|
DequeueOutgoing ( int MaxNPacks ) : bool |
tries to send queued packets This function is only called from a synchronous loop in the UDPServer so we don't need to bother making this thread safe |
|
EnqueueOutgoing ( |
||
GetCurTaskPacksInQueue ( ) : int | ||
GetCurTexPacksInQueue ( ) : int | ||
GetThrottlesPacked ( float multiplier ) : byte[] | ||
LLUDPClient ( |
Default constructor
|
|
SendPacketStats ( ) : void | ||
SetThrottles ( byte throttleData ) : void | ||
Shutdown ( ) : void |
Shuts down this client connection
|
|
SlowDownSend ( ) : void | ||
UpdateRoundTrip ( float r ) : void |
Called when an ACK packet is received and a round-trip time for a packet is calculated. This is used to calculate the smoothed round-trip time, round trip time variance, and finally the retransmission timeout
|
Method | Description | |
---|---|---|
FireQueueEmpty ( object o ) : void |
Fires the OnQueueEmpty callback and sets the minimum time that it can be called again
|
public DequeueOutgoing ( int MaxNPacks ) : bool | ||
MaxNPacks | int | |
return | bool |
public EnqueueOutgoing ( |
||
packet | ||
return | bool |
public GetThrottlesPacked ( float multiplier ) : byte[] | ||
multiplier | float | |
return | byte[] |
public LLUDPClient ( |
||
server | Reference to the UDP server this client is connected to | |
rates | Default throttling rates and maximum throttle limits | |
parentThrottle | TokenBucket | /// Parent HTB (hierarchical token bucket) /// that the child throttles will be governed by /// |
circuitCode | uint | Circuit code for this connection |
agentID | UUID | AgentID for the connected agent |
remoteEndPoint | Remote endpoint for this connection | |
defaultRTO | int | |
maxRTO | int | |
return | System |
public SetThrottles ( byte throttleData ) : void | ||
throttleData | byte | |
return | void |
public UpdateRoundTrip ( float r ) : void | ||
r | float | /// Round-trip time of a single packet and its /// acknowledgement /// |
return | void |
public UnackedPacketCollection,Universe.ClientStack NeedAcks | ||
return |
public IncomingPacketHistoryCollection,Universe.ClientStack PacketArchive | ||
return |
public IPEndPoint,System.Net RemoteEndPoint | ||
return |