Class EOS_P2P_SendPacketOptions
java.lang.Object
com.sun.jna.Structure
host.anzo.eossdk.eos.sdk.p2p.options.EOS_P2P_SendPacketOptions
- Direct Known Subclasses:
EOS_P2P_SendPacketOptions.ByReference,EOS_P2P_SendPacketOptions.ByValue
@FieldOrder({"ApiVersion","LocalUserId","RemoteUserId","SocketId","Channel","DataLengthBytes","Data","IsAllowDelayedDelivery","Reliability","IsDisableAutoAcceptConnection"})
public class EOS_P2P_SendPacketOptions
extends com.sun.jna.Structure
Structure containing information about the data being sent and to which player
- Since:
- 8/21/2023
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from class com.sun.jna.Structure
com.sun.jna.Structure.FieldOrder, com.sun.jna.Structure.StructField -
Field Summary
FieldsModifier and TypeFieldDescriptionintAPI Version: Set this to EOS_P2P_SENDPACKET_API_LATEST.byteChannel associated with this datacom.sun.jna.PointerThe data to be sent to the RemoteUserintThe size of the data to be sent to the RemoteUserstatic final intIf false and we do not already have an established connection to the peer, this data will be droppedIf set to EOS_TRUE, EOS_P2P_SendPacket will not automatically establish a connection with the RemoteUserId and will require explicit calls to EOS_P2P_AcceptConnection first whenever the connection is closed.The Product User ID of the local user who is sending this packetSetting to control the delivery reliability of this packetThe Product User ID of the Peer you would like to send a packet toThe socket ID for data you are sending in this packetFields 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_SENDPACKET_API_LATEST
public static final int EOS_P2P_SENDPACKET_API_LATEST- See Also:
-
ApiVersion
public int ApiVersionAPI Version: Set this to EOS_P2P_SENDPACKET_API_LATEST. -
LocalUserId
The Product User ID of the local user who is sending this packet -
RemoteUserId
The Product User ID of the Peer you would like to send a packet to -
SocketId
The socket ID for data you are sending in this packet -
Channel
public byte ChannelChannel associated with this data -
DataLengthBytes
public int DataLengthBytesThe size of the data to be sent to the RemoteUser -
Data
public com.sun.jna.Pointer DataThe data to be sent to the RemoteUser -
IsAllowDelayedDelivery
If false and we do not already have an established connection to the peer, this data will be dropped -
Reliability
Setting to control the delivery reliability of this packet -
IsDisableAutoAcceptConnection
If set to EOS_TRUE, EOS_P2P_SendPacket will not automatically establish a connection with the RemoteUserId and will require explicit calls to EOS_P2P_AcceptConnection first whenever the connection is closed. If set to EOS_FALSE, EOS_P2P_SendPacket will automatically accept and start the connection any time it is called and the connection is not already open.
-
-
Constructor Details
-
EOS_P2P_SendPacketOptions
public EOS_P2P_SendPacketOptions() -
EOS_P2P_SendPacketOptions
public EOS_P2P_SendPacketOptions(com.sun.jna.Pointer peer)
-