NNStartNatDetection

GameSpy SDK

NNStartNatDetection

Starts the NAT detection process.

NegotiateError NNStartNatDetection(
NatDetectionResultsFunc resultscallback );
RoutineRequired HeaderDistribution
NNStartNatDetection<natneg.h>SDKZIP

Return Value

ne_noerror if successful; otherwise one of the ne_ error values. See Remarks for detail.

Parameters

resultscallback
[in] Callback function that will be called when NAT detection is complete.

Remarks

Possible errors that can be returned when starting a negotiation
ne_noerror: No error
ne_socketerror: Socket allocation failed
ne_dnserror: DNS lookup failed.