EOS_P2P_SetPortRangeOptions

EOS API reference page for EOS_P2P_SetPortRangeOptions

実装方法を選んでください。

C

C#

This data structure is part of the [P2P Interface](Interfaces/P2P).

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

This data structure is part of the [P2P Interface](Interfaces/P2P).

Remarks

Structure containing information about new port range settings.

Properties

P2P.SetPortRangeOptions

Property

Value

int ApiVersion

API Version: Set this to EOS_P2P_SETPORTRANGE_API_LATEST.

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

ushort 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

タグ