EOS API reference page for EOS_P2P_GetNextReceivedPacketSize

1분 소요

This function is part of the P2P Interface.


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



Parameter Type And NameUsage Information
EOS_HP2P Handle
const EOS_P2P_GetNextReceivedPacketSizeOptions* OptionsInformation about who is requesting the size of their next packet
uint32_t* OutPacketSizeBytesThe amount of bytes required to store the data of the next packet for the requested user