EOS_P2P_GetPortRange

EOS API reference page for EOS_P2P_GetPortRange

1분 소요

This function is part of the P2P Interface.

Remarks

Get the current chosen port and the amount of other ports to try above the chosen port if the chosen port is unavailable.

Return Value

  • EOS_EResult::EOS_Success - if the input options were valid

  • EOS_EResult::EOS_InvalidParameters - if the input was invalid in some way

Parameters

EOS_P2P_GetPortRange

Parameter Type And NameUsage Information
EOS_HP2P Handle
const EOS_P2P_GetPortRangeOptions* OptionsInformation about what version of the EOS_P2P_GetPortRange API is supported
uint16_t* OutPortThe port that will be tried first
uint16_t* OutNumAdditionalPortsToTryThe amount of ports to try above the value in OutPort, if OutPort is unavailable