Interface IUdpClient
Assembly: Eco.Shared.dll
Syntax
public interface IUdpClient : IUdpPeer, IUnconnectedUdpPeer
Properties
AverageRoundtripTime
Declaration
float AverageRoundtripTime { get; }
Property Value
Type |
Description |
System.Single |
|
ConnectionStatus
Declaration
UdpConnectionStatus ConnectionStatus { get; }
Property Value
RemoteEndPoint
Declaration
IPEndPoint RemoteEndPoint { get; }
Property Value
Type |
Description |
System.Net.IPEndPoint |
|
Methods
Disconnect()
Disconnects client from server peer.
Declaration
GetStats()
Returns network stats like how much bytes sent and received. NetStats for more details.
Declaration
Returns
SendData(ReadOnlySpan<Byte>, Byte)
Sends data to the server peer. Optionally may be provided channel
. Reliable sequenced packets delivers independently on different channels.
Declaration
void SendData(ReadOnlySpan<byte> data, byte channel = 0)
Parameters
Type |
Name |
Description |
System.ReadOnlySpan<System.Byte> |
data |
|
System.Byte |
channel |
|
Extension Methods