Class UdpPeerExtensions
Inheritance
System.Object
UdpPeerExtensions
Namespace: Eco.Shared.Networking.Udp
Assembly: Eco.Shared.dll
Syntax
public static class UdpPeerExtensions : Object
Methods
SendData(IUdpPeer, IEnumerable<Object>, Byte[], Int32, Int32, Byte)
Sends data to all connections
. Optionally may be provided channel
. Reliable sequenced packets delivers independently on different channels.
Declaration
public static void SendData(this IUdpPeer peer, IEnumerable<object> connections, byte[] data, int offset, int length, byte channel = 0)
Parameters
Type | Name | Description |
---|---|---|
IUdpPeer | peer | |
System.Collections.Generic.IEnumerable<System.Object> | connections | |
System.Byte[] | data | |
System.Int32 | offset | |
System.Int32 | length | |
System.Byte | channel |
SendData(IUdpPeer, Object, Byte[], Int32, Int32, Byte)
Sends data to the connection
(one of connected peers). Optionally may be provided channel
. Reliable sequenced packets delivers independently on different channels.
Declaration
public static void SendData(this IUdpPeer peer, object connection, byte[] data, int offset, int length, byte channel = 0)
Parameters
Type | Name | Description |
---|---|---|
IUdpPeer | peer | |
System.Object | connection | |
System.Byte[] | data | |
System.Int32 | offset | |
System.Int32 | length | |
System.Byte | channel |