ENet Class Library for C#

Peer.Send(Byte, Byte, PacketFlags) Method

Enqueues a packet for sending using the given data and flags.

[Visual Basic]
Public Overloads Sub Send( _
   ByVal channelID As Byte, _
   ByVal data As Byte, _
   ByVal flags As PacketFlags _
)
[C#]
public void Send(
   byte channelID,
   byte[] data,
   PacketFlags flags
);

Parameters

channelID
The ID of the channel to send on.
data
The data to send.
flags
The packet flags.

Exceptions

Exception Type Condition
ArgumentNullException data is null.
InvalidOperationException The peer is not initialized.
ENetException An error occured.

See Also

Peer Class | ENet Namespace | Peer.Send Overload List