EOS API reference page for EOS_P2P_QueryNATType

This function is part of the P2P Interface.


Query the current NAT-type of our connection.


Parameter Type And Name

Usage Information

EOS_HP2P Handle

const EOS_P2P_QueryNATTypeOptions* Options

Information about what version of the EOS_P2P_QueryNATType API is supported

void* ClientData

arbitrary data that is passed back to you in the CompletionDelegate

const EOS_P2P_OnQueryNATTypeCompleteCallback CompletionDelegate

The callback to be fired when we finish querying our NAT type

This function is asynchronous; the EOS SDK guarantees that your callback (the CompletionDelegate parameter) will run when the operation completes, regardless of whether it succeeds or fails. Use the void* parameter to pass any contextual information the callback may need in order to react properly. Relevant information can be copied from the EOS SDK's cache while the callback function is running. You do not need to remove the callback function.

Callback Function Information

Because this function is asynchronous, it employs a callback of type EOS_P2P_OnQueryNATTypeCompleteCallback to report the results of its operation.

Callback Remarks

Callback for information related to our NAT type query completing.

Callback Parameters

Parameter Type And Name

Usage Information

const EOS_P2P_OnQueryNATTypeCompleteInfo* Data

Related API Members