ENet Class Library for C#

Peer.Send(Byte, Packet) Method

Enqueues a packet for sending.

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

Parameters

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

Return Value

True if the packet was enqueued successfully, or false if an error occured.

Exceptions

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

See Also

Peer Class | ENet Namespace | Peer.Send Overload List