EOS_P2P_QueryNATType

EOS API reference page for EOS_P2P_QueryNATType

Choose your implementation method:

C

C#

This function is part of the P2P Interface.

Remarks

Query the current NAT-type of our connection.

Parameters

EOS_P2P_QueryNATType

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

EOS_P2P_OnQueryNATTypeCompleteCallback

Parameter Type And Name

Usage Information

const EOS_P2P_OnQueryNATTypeCompleteInfo* Data

Related API Members

This function is part of the P2P Interface.

Remarks

Query the current NAT-type of our connection.

Parameters

P2P.P2PInterface.QueryNATType

Parameter Type And Name

Usage Information

QueryNATTypeOptions options

Information about what version of the EOS_P2P_QueryNATType API is supported

object clientData

arbitrary data that is passed back to you in the CompletionDelegate

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 object 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 P2P.OnQueryNATTypeCompleteCallback to report the results of its operation.

Callback Remarks

Callback for information related to our NAT type query completing.

Callback Parameters

P2P.OnQueryNATTypeCompleteCallback

Parameter Type And Name

Usage Information

OnQueryNATTypeCompleteInfo data

Related API Members

Tags