gt2CloseSocket

GameSpy SDK

gt2CloseSocket

Closes a socket.

void gt2CloseSocket(
GT2Socket socket );
RoutineRequired HeaderDistribution
gt2CloseSocket<gt2.h>SDKZIP

Parameters

socket
[in] The handle to the socket.

Remarks

All existing connections will be hard closed, as if gt2CloseAllConnectionsHard was called for this socket. All connections send a close message to the remote side, and any closed callbacks will be called from within this function.

Section Reference: Gamespy Transport SDK

See Also: gt2CreateSocket