C# Класс MiniUDP.NetTraffic.PingCounter

A sliding history window of outgoing ping information and support for cross-referencing incoming pongs against that history.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ConsumePong ( byte pongSeq ) : long

Returns the time the ping was created for the given pong. Checks to make sure the stored slot corresponds to the sequence.

CreatePing ( long curTime ) : byte

Creates a new outgoing ping. Stores both that ping's sequence and the time it was created.

PingCounter ( ) : System

Описание методов

ConsumePong() публичный Метод

Returns the time the ping was created for the given pong. Checks to make sure the stored slot corresponds to the sequence.
public ConsumePong ( byte pongSeq ) : long
pongSeq byte
Результат long

CreatePing() публичный Метод

Creates a new outgoing ping. Stores both that ping's sequence and the time it was created.
public CreatePing ( long curTime ) : byte
curTime long
Результат byte

PingCounter() публичный Метод

public PingCounter ( ) : System
Результат System