Related API Members
This function is part of the P2P Interface.
Receive the next packet for the local user, and information associated with this packet, if it exists.
EOS_EResult::EOS_Success - If the packet was received successfully
EOS_EResult::EOS_InvalidParameters - If input was invalid
EOS_EResult::EOS_NotFound - If there are no packets available for the requesting user
Parameter Type And Name
const EOS_P2P_ReceivePacketOptions* Options
Information about who is requesting the size of their next packet, and how much data can be stored safely
The Remote User who sent data. Only set if there was a packet to receive.
The Socket ID of the data that was sent. Only set if there was a packet to receive.
The channel the data was sent on. Only set if there was a packet to receive.
Buffer to store the data being received. Must be at least EOS_P2P_GetNextReceivedPacketSize in length or data will be truncated
The amount of bytes written to OutData. Only set if there was a packet to receive.