gt2SetSocketData

GameSpy SDK

gt2SetSocketData

Stores a user data pointer with this socket.

void gt2SetSocketData(
GT2Socket socket,
void * data );
RoutineRequired HeaderDistribution
gt2SetSocketData<gt2.h>SDKZIP

Parameters

socket
[in] The handle to the socket.
data
[in] A pointer to this socket's user data.

Remarks

Each socket has a user data pointer associated with it that can be used by the application for any purpose.