gt2ClosedCallback

GameSpy SDK

gt2ClosedCallback

This callback is called when the connection has been closed.

typedef void (*gt2ClosedCallback)(
GT2Connection connection,
GT2CloseReason reason );
RoutineRequired HeaderDistribution
gt2ClosedCallback<gt2.h>SDKZIP

Parameters

connection
[in] The handle to the connection.
reason
[in] The reason the connection closed.

Remarks

A connection close can be caused by either side calling gt2CloseConnection (or gt2CloseConnectionHard), either side closing the socket, or some sort of error. The connection cannot be used again once this callback returns.