This data structure is part of the P2P Interface.
Remarks
Structure containing information about the data being sent and to which player
Properties
EOS_P2P_SendPacketOptions
Property | Value |
---|---|
int32_t ApiVersion | API Version: Set this to EOS_P2P_SENDPACKET_API_LATEST. |
EOS_ProductUserId LocalUserId | The Product User ID of the local user who is sending this packet |
EOS_ProductUserId RemoteUserId | The Product User ID of the Peer you would like to send a packet to |
const EOS_P2P_SocketId* SocketId | The socket ID for data you are sending in this packet |
uint8_t Channel | Channel associated with this data |
uint32_t DataLengthBytes | The size of the data to be sent to the RemoteUser |
const void* Data | The data to be sent to the RemoteUser |
EOS_Bool bAllowDelayedDelivery | If false and we do not already have an established connection to the peer, this data will be dropped |
EOS_EPacketReliability Reliability | Setting to control the delivery reliability of this packet |
EOS_Bool bDisableAutoAcceptConnection | 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. |