Свойство | Тип | Описание | |
---|---|---|---|
GenerateDrop | byte | ||
GenerateLoss | byte | ||
GeneratePing | byte | ||
GetTimeSinceRecv | long | ||
IsPayloadNew | bool | ||
NetTraffic | System | ||
OnReceiveNotification | bool | ||
OnReceiveOther | void | ||
OnReceivePayload | bool | ||
OnReceivePing | void | ||
OnReceivePong | void | ||
PingAverage | float | ||
Update | void |
Метод | Описание | |
---|---|---|
GenerateDrop ( ) : byte | ||
GenerateLoss ( ) : byte | ||
GeneratePing ( long curTime ) : byte | ||
GetTimeSinceRecv ( long curTime ) : long | ||
IsPayloadNew ( ushort sequence ) : bool |
Returns true iff a payload sequence is new.
|
|
NetTraffic ( long creationTime ) : System | ||
OnReceiveNotification ( long curTime, ushort notificationSeq ) : bool |
Logs the receipt of a notification for timing and keepalive. Returns false iff the notification is too old and should be rejected.
|
|
OnReceiveOther ( long curTime ) : void |
For all other packet types.
|
|
OnReceivePayload ( long curTime, ushort payloadSeq ) : bool |
Logs the receipt of a payload for packet loss calculation. Returns false iff the payload is too old and should be rejected.
|
|
OnReceivePing ( long curTime, byte loss ) : void |
Processes the loss value from a received ping.
|
|
OnReceivePong ( long curTime, byte pongSeq, byte drop ) : void |
Receives a pong and updates connection timings.
|
|
PingAverage ( int window ) : float |
Computes the average ping over a window.
|
|
Update ( long curTime ) : void |