This data structure is part of the P2P Interface.
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.
|
This data structure is part of the P2P Interface.
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.
|
Was this document useful?
Thank you for the response!
You’ve marked this document as useful:
yes
You’ve marked this document as not useful:
no