gt2ClosedCallback
This callback is called when the connection has been closed.
- typedef void (*gt2ClosedCallback)(
- GT2Connection connection,
- GT2CloseReason reason );
Routine | Required Header | Distribution |
---|---|---|
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.
Section Reference: Gamespy Transport SDK
See Also: gt2CloseConnection, gt2CloseConnectionHard, gt2Connect, gt2Accept