프로퍼티 | 타입 | 설명 | |
---|---|---|---|
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 |
메소드 | 설명 | |
---|---|---|
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
|
메소드 | 설명 | |
---|---|---|
FireQueueEmpty ( object o ) : void |
Fires the OnQueueEmpty callback and sets the minimum time that it can be called again
|
public EnqueueOutgoing ( |
||
packet | ||
리턴 | bool |
public GetThrottlesPacked ( float multiplier ) : byte[] | ||
multiplier | float | |
리턴 | 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 | |
리턴 | System |
public UpdateRoundTrip ( float r ) : void | ||
r | float | /// Round-trip time of a single packet and its /// acknowledgement /// |
리턴 | void |
public UnackedPacketCollection,Universe.ClientStack NeedAcks | ||
리턴 |
public IncomingPacketHistoryCollection,Universe.ClientStack PacketArchive | ||
리턴 |