NatDetectionResultsFunc

GameSpy SDK

NatDetectionResultsFunc

The callback that gets executed from NNStartNatDetection when the detection is complete.

typedef void (*NatDetectionResultsFunc)(
gsi_bool success,
NAT nat );
RoutineRequired HeaderDistribution
NatDetectionResultsFunc<natneg.h>SDKZIP

Parameters

success
[in] if gsi_true the NAT detection was successful
nat
[in] When detection is successful, this contains the NAT device's properties.

Remarks

Once your detection callback function is called, check the success parameter. If it is gsi_false, then the detection could not be completed and should be retried. If it is gsi_true, then the nat parameter will contain the properties of the detected NAT device.

Section Reference: Gamespy NAT Negotiation SDK

See Also: NNStartNatDetection, NAT