qr2_clientconnectedcallback_t

GameSpy SDK

qr2_clientconnectedcallback_t

This callback is set via qr2_register_clientconnected_callback; called when a client has connected to the server.

typedef void (*qr2_clientconnectedcallback_t)(
SOCKET gameSocket,
struct sockaddr_in * remoteaddr,
void * userdata );
RoutineRequired HeaderDistribution
qr2_clientconnectedcallback_t<qr2.h>SDKZIP

Parameters

gameSocket
[in] The socket on which the client connected
remoteaddr
[in] The client's address and port.
userdata
[in] The userdata that was passed into qr2_init.