EOS API reference page for EOS_P2P_SendPacket

This function is part of the P2P Interface.


Send a packet to a peer at the specified address. If there is already an open connection to this peer, it will be sent immediately. If there is no open connection, an attempt to connect to the peer will be made. An EOS_Success result only means the data was accepted to be sent, not that it has been successfully delivered to the peer.

Return Value

  • EOS_EResult::EOS_Success - If packet was queued to be sent successfully

  • EOS_EResult::EOS_InvalidParameters - If input was invalid

  • EOS_EResult::EOS_LimitExceeded - If amount of data being sent is too large, or the outgoing packet queue was full


Parameter Type And Name

Usage Information

EOS_HP2P Handle

const EOS_P2P_SendPacketOptions* Options

Information about the data being sent, by who, to who

Related API Members