qr2_publicaddresscallback_t

GameSpy SDK

qr2_publicaddresscallback_t

This callback is set via qr2_register_publicaddress_callback; called when the local client's public address is received.

typedef void (*qr2_publicaddresscallback_t)(
unsigned int ip,
unsigned short port,
void * userdata );
RoutineRequired HeaderDistribution
qr2_publicaddresscallback_t<qr2.h>SDKZIP

Parameters

ip
[in] IP address in string form: xxx.xxx.xxx.xxx
port
[in] Port number
userdata
[in] The userdata that was passed into qr2_init.

Remarks

The address is that of the externalmost NAT or firewall device, and is determined by the GameSpy master server during the qr2_init process.