EOS_P2P_SendPacketOptions

EOS API reference page for EOS_P2P_SendPacketOptions

2 分で読めます

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

PropertyValue
int32_t ApiVersionAPI Version: Set this to EOS_P2P_SENDPACKET_API_LATEST.
EOS_ProductUserId LocalUserIdThe Product User ID of the local user who is sending this packet
EOS_ProductUserId RemoteUserIdThe Product User ID of the Peer you would like to send a packet to
const EOS_P2P_SocketId* SocketIdThe socket ID for data you are sending in this packet
uint8_t ChannelChannel associated with this data
uint32_t DataLengthBytesThe size of the data to be sent to the RemoteUser
const void* DataThe data to be sent to the RemoteUser
EOS_Bool bAllowDelayedDeliveryIf false and we do not already have an established connection to the peer, this data will be dropped
EOS_EPacketReliability ReliabilitySetting to control the delivery reliability of this packet
EOS_Bool bDisableAutoAcceptConnectionIf 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.