Class EOS_P2P_SetPortRangeOptions
java.lang.Object
com.sun.jna.Structure
host.anzo.eossdk.eos.sdk.p2p.options.EOS_P2P_SetPortRangeOptions
- Direct Known Subclasses:
EOS_P2P_SetPortRangeOptions.ByReference
,EOS_P2P_SetPortRangeOptions.ByValue
@FieldOrder({"ApiVersion","Port","MaxAdditionalPortsToTry"})
public class EOS_P2P_SetPortRangeOptions
extends com.sun.jna.Structure
Structure containing information about new port range settings.
- Since:
- 8/21/2023
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from class com.sun.jna.Structure
com.sun.jna.Structure.FieldOrder, com.sun.jna.Structure.StructField
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
API Version: Set this toEOS_P2P_SETPORTRANGE_API_LATEST
.static final int
The most recent version of the EOS_P2P_SetPortRange API.short
The maximum amount of additional ports to try if Port is unavailable.short
The ideal port to use for P2P traffic.Fields inherited from class com.sun.jna.Structure
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.sun.jna.Structure
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFieldOrder, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
-
Field Details
-
EOS_P2P_SETPORTRANGE_API_LATEST
public static final int EOS_P2P_SETPORTRANGE_API_LATESTThe most recent version of the EOS_P2P_SetPortRange API.- See Also:
-
ApiVersion
public int ApiVersionAPI Version: Set this toEOS_P2P_SETPORTRANGE_API_LATEST
. -
Port
public short 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. -
MaxAdditionalPortsToTry
public short 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.
-
-
Constructor Details
-
EOS_P2P_SetPortRangeOptions
public EOS_P2P_SetPortRangeOptions() -
EOS_P2P_SetPortRangeOptions
public EOS_P2P_SetPortRangeOptions(com.sun.jna.Pointer peer)
-