This function is part of the P2P Interface.
Remarks
Gets the size of the packet that will be returned by ReceivePacket for a particular user, if there is any available packets to be retrieved.
Return Value
-
EOS_EResult::EOS_Success - If OutPacketSizeBytes was successfully set and there is data to be received
-
EOS_EResult::EOS_InvalidParameters - If input was invalid
-
EOS_EResult::EOS_NotFound - If there are no packets available for the requesting user
Parameters
EOS_P2P_GetNextReceivedPacketSize
Parameter Type And Name | Usage Information |
---|---|
EOS_HP2P Handle | |
const EOS_P2P_GetNextReceivedPacketSizeOptions* Options | Information about who is requesting the size of their next packet |
uint32_t* OutPacketSizeBytes | The amount of bytes required to store the data of the next packet for the requested user |