EOS_P2P_SendPacket

EOS API reference page for EOS_P2P_SendPacket

Choose your implementation method:

C

C#

This function is part of the P2P Interface.

Remarks

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

Parameters

EOS_P2P_SendPacket

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

This function is part of the P2P Interface.

Remarks

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 {Result.Success} result only means the data was accepted to be sent, not that it has been successfully delivered to the peer. {Result}::{Result.InvalidParameters} - If input was invalid {Result}::{Result.LimitExceeded} - If amount of data being sent is too large, or the outgoing packet queue was full

Return Value

{Result}::{Result.Success} - If packet was queued to be sent successfully

Parameters

P2P.P2PInterface.SendPacket

Parameter Type And Name

Usage Information

SendPacketOptions options

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

Related API Members

Tags