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 );
Routine | Required Header | Distribution |
---|---|---|
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.
Section Reference: Gamespy Query and Reporting 2 SDK
See Also: qr2_init, qr2_register_publicaddress_callback