gt2Ping

GameSpy SDK

gt2Ping

Sends a ping on a connection in an attempt to determine latency.

void gt2Ping(
GT2Connection connection );
RoutineRequired HeaderDistribution
gt2Ping<gt2.h>SDKZIP

Parameters

connection
[in] The handle to the connection.

Remarks

The ping callback will, which is set as part of the GT2ConnectionCallbacks in either gt2Connect or gt2Accept, will be called if and when a ping finishes making a round-trip between the local end of the connection and the remote end. The ping is unreliable, and either it or the pong sent in reply could be dropped, resulting in the callback never being called. Or it could even arrive multiple times, resulting in multiple calls to the callback (this case is very rare).

Section Reference: Gamespy Transport SDK

See Also: gt2PingCallback