gt2CloseConnection

GameSpy SDK

gt2CloseConnection

Starts closing a connection.

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

Parameters

connection
[in] The handle to the connection.

Remarks

This function attempts to synchronize the close with the remote side of the connection. This means that the connection does not close immediately, and messages may be received while attempting the close. When the close is completed, the connection's closed callback will be called. Use gt2CloseConnectionHard to immediately close a connection.