EOS_P2P_SetPortRangeOptions

EOS API reference page for EOS_P2P_SetPortRangeOptions

This data structure is part of the P2P Interface.

Remarks

Structure containing information about new port range settings.

Properties

EOS_P2P_SetPortRangeOptions

Property

Value

int32_t ApiVersion

API Version: Set this to EOS_P2P_SETPORTRANGE_API_LATEST.

uint16_t Port

The 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 MaxAdditionalPortsToTry

The 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.

Related API Members

Tags