peerQRPublicAddressCallback

GameSpy SDK

peerQRPublicAddressCallback

Called when hosting a server with the server's public reporting address.

typedef void (*peerQRPublicAddressCallback)(
PEER peer,
unsigned int ip,
unsigned short port,
void * param );
RoutineRequired HeaderDistribution
peerQRPublicAddressCallback<peer.h>SDKZIP

Parameters

peer
[in] Initialized peer object
ip
[in] The IP address of the host in string form: "xxx.xxx.xxx.xxx"
port
[in] The Port number of the host
param
[in] Pointer to user data. This is optional and will be passed unmodified to the callback function.

Remarks

The peerQRPublicAddressCallback function is called when a host has been requested to send its public IP and public port to the requester.

Section Reference: Gamespy Peer SDK