NNStartNatDetection
Starts the NAT detection process.
- NegotiateError NNStartNatDetection(
- NatDetectionResultsFunc resultscallback );
Routine | Required Header | Distribution |
---|---|---|
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.
Section Reference: Gamespy NAT Negotiation SDK
See Also: NatDetectionResultsFunc, NAT