C# 클래스 MiniUDP.NetTraffic.PingCounter

A sliding history window of outgoing ping information and support for cross-referencing incoming pongs against that history.
파일 보기 프로젝트 열기: ashoulson/MiniUDP 1 사용 예제들

공개 메소드들

메소드 설명
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