pub type EOS_P2P_SendPacketOptions = _tagEOS_P2P_SendPacketOptions;Expand description
Structure containing information about the data being sent and to which player
Aliased Type§
#[repr(C)]pub struct EOS_P2P_SendPacketOptions {
pub ApiVersion: i32,
pub LocalUserId: *mut EOS_ProductUserIdDetails,
pub RemoteUserId: *mut EOS_ProductUserIdDetails,
pub SocketId: *const _tagEOS_P2P_SocketId,
pub Channel: u8,
pub DataLengthBytes: u32,
pub Data: *const c_void,
pub bAllowDelayedDelivery: i32,
pub Reliability: i32,
pub bDisableAutoAcceptConnection: i32,
}Fields§
§ApiVersion: i32API Version: Set this to EOS_P2P_SENDPACKET_API_LATEST.
LocalUserId: *mut EOS_ProductUserIdDetailsThe Product User ID of the local user who is sending this packet
RemoteUserId: *mut EOS_ProductUserIdDetailsThe Product User ID of the Peer you would like to send a packet to
SocketId: *const _tagEOS_P2P_SocketIdThe socket ID for data you are sending in this packet
Channel: u8Channel associated with this data
DataLengthBytes: u32The size of the data to be sent to the RemoteUser
Data: *const c_voidThe data to be sent to the RemoteUser
bAllowDelayedDelivery: i32If false and we do not already have an established connection to the peer, this data will be dropped
Reliability: i32Sets the reliability of the delivery of this packet. The reliability can be EOS_PR_UnreliableUnordered, EOS_PR_ReliableUnordered, or EOS_PR_ReliableOrdered.
bDisableAutoAcceptConnection: i32If 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.