gt2GetConnectionState
Gets the connection's state.
- GT2ConnectionStateĀ gt2GetConnectionState(
- GT2Connection connection );
Routine | Required Header | Distribution |
---|---|---|
gt2GetConnectionState | <gt2.h> | SDKZIP |
Return Value
GT2Connecting, GT2Connected, GT2Closing, or GT2Closed
Parameters
- connection
- [in] The handle to the connection.
Remarks
A connection is either connecting, connected, closing, or closed.
GT2Connecting - the connection is still being negotiated
GT2Connected - the connection is active (has successfully connected, and not yet closing)
GT2Closing - the connection is in the process of closing (sent a close message and waiting for confirmation)
GT2Closed - the connection has already been closed and will soon be freed.
Section Reference: Gamespy Transport SDK