gt2GetConnectionSocket

GameSpy SDK

gt2GetConnectionSocket

Returns the socket which this connection exists on.

GT2SocketĀ gt2GetConnectionSocket(
GT2Connection connection );
RoutineRequired HeaderDistribution
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.