gt2GetConnectionSocket
Returns the socket which this connection exists on.
- GT2SocketĀ gt2GetConnectionSocket(
- GT2Connection connection );
Routine | Required Header | Distribution |
---|---|---|
gt2GetConnectionSocket | <gt2.h> | SDKZIP |
Return Value
The socket on which the connection was created or accepted.
Parameters
- connection
- [in] The handle to the connection.
Remarks
All connections are created through either gt2Connect or gt2ConnectAttemptCallback. This function will return the socket associated with the connection.
Section Reference: Gamespy Transport SDK
See Also: gt2Connect, gt2ConnectAttemptCallback