GameSpy SDK


Does any thinking for this socket and its connections.

void gt2Think(
GT2Socket socket );
RoutineRequired HeaderDistribution


[in] The handle to the socket.


Callbacks are typically called from within this function (although they can also be called from other places). It is possible that during this think the socket or any of its connections may be closed, so care must be taken if calling other GT2 functions immediately after thinking. The more frequently this function is called, the faster GT2 will be able to respond (and reply to) messages. The general rule is to call it at frequently as you can, although calling it faster than every 10-20 milliseconds is probably unnecessary. If you are using gt2Ping to measure ping times, then the accuracy of the latency measurement will increase with the frequency at which this function is called.

Section Reference: Gamespy Transport SDK