EOS_P2P_SetPortRangeOptions

EOS API reference page for EOS_P2P_SetPortRangeOptions

2 分で読める

This data structure is part of the P2P Interface.

Remarks

Structure containing information about new port range settings.

Properties

EOS_P2P_SetPortRangeOptions

PropertyValue
int32_t ApiVersionAPI Version: Set this to EOS_P2P_SETPORTRANGE_API_LATEST.
uint16_t PortThe ideal port to use for P2P traffic. The default value is 7777. If set to 0, the OS will choose a port. If set to 0, MaxAdditionalPortsToTry must be set to 0.
uint16_t MaxAdditionalPortsToTryThe maximum amount of additional ports to try if Port is unavailable. Ports will be tried from Port to Port + MaxAdditionalPortsToTry inclusive, until one is available or we run out of ports. If no ports are available, P2P connections will fail. The default value is 99.