Show / Hide Table of Contents

Interface IUdpClient

Interface for Upd client. It contains client specific methods and properties (like ConnectionStatus or Disconnect()).

Inherited Members
IUdpPeer.CountOfChannels
IUdpPeer.add_DataMessageReceived(UdpDataMessageHandler)
IUdpPeer.remove_DataMessageReceived(UdpDataMessageHandler)
IUdpPeer.add_Connected(UdpConnectedHandler)
IUdpPeer.remove_Connected(UdpConnectedHandler)
IUdpPeer.add_Disconnected(UdpDisconnectedHandler)
IUdpPeer.remove_Disconnected(UdpDisconnectedHandler)
IUdpPeer.add_ChannelDataReceived(UdpChannelDataReceived)
IUdpPeer.remove_ChannelDataReceived(UdpChannelDataReceived)
IUdpPeer.Connect(IPEndPoint)
IUdpPeer.SendData(Object, ReadOnlySpan<Byte>, Byte)
IUdpPeer.SendData(IEnumerable<Object>, ReadOnlySpan<Byte>, Byte)
IUdpPeer.ProtocolVersion
IUdpPeer.DataMessageReceived
IUdpPeer.Connected
IUdpPeer.Disconnected
IUdpPeer.ChannelDataReceived
IUnconnectedUdpPeer.add_UnconnectedDataMessageReceived(UdpDataMessageHandler)
IUnconnectedUdpPeer.remove_UnconnectedDataMessageReceived(UdpDataMessageHandler)
IUnconnectedUdpPeer.SendRaw(IPEndPoint, Byte[], Int32, Int32)
IUnconnectedUdpPeer.SendUnconnectedMessage(IPEndPoint, Byte[], Int32, Int32)
IUnconnectedUdpPeer.Start()
IUnconnectedUdpPeer.Shutdown()
IUnconnectedUdpPeer.Service(Int32)
IUnconnectedUdpPeer.ServiceOne(Int32)
IUnconnectedUdpPeer.SyncTimer(Double)
IUnconnectedUdpPeer.MaximumUnconnectedMessageLength
IUnconnectedUdpPeer.Port
IUnconnectedUdpPeer.IsRunning
IUnconnectedUdpPeer.LocalEndPoint
IUnconnectedUdpPeer.UnconnectedDataMessageReceived
IUnconnectedUdpPeer.ErrorMessageReceived
IUnconnectedUdpPeer.WarningMessageReceived
IUnconnectedUdpPeer.DebugMessageReceived
Namespace: Eco.Shared.Networking.Udp
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
Type Description
UdpConnectionStatus

RemoteEndPoint

Declaration
IPEndPoint RemoteEndPoint { get; }
Property Value
Type Description
System.Net.IPEndPoint

Methods

Disconnect()

Disconnects client from server peer.

Declaration
void Disconnect()

GetStats()

Returns network stats like how much bytes sent and received. NetStats for more details.

Declaration
NetStats GetStats()
Returns
Type Description
NetStats

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

UdpPeerExtensions.SendUnconnectedMessage(IUnconnectedUdpPeer, IPEndPoint, MemoryStream, Boolean)
UdpPeerExtensions.SendUnconnectedMessageWithFragmentation(IUnconnectedUdpPeer, IPEndPoint, MemoryStream)
UdpPeerExtensions.SendUnconnectedMessage(IUnconnectedUdpPeer, IPEndPoint, MemoryStream)
NetMessage.SendDiscoveryRequest(IUnconnectedUdpPeer, IPEndPoint)
NetMessage.SendDiscoveryResponse(IUnconnectedUdpPeer, IPEndPoint, String)
NetMessage.SendPingRequest(IUnconnectedUdpPeer, IPEndPoint)
NetMessage.SendPingRequest(IUnconnectedUdpPeer, IPEndPoint, Double)
NetMessage.SendPingReply(IUnconnectedUdpPeer, IPEndPoint, Guid, Double)
NetMessage.SendPacket(IUdpClient, NetworkEvent, BSONObject)
NetMessage.SendPacket(IUdpPeer, NetworkEvent, BSONValue, Object)
NetMessage.Disconnect(IUdpClient, String, Boolean)
CommandLine.FeedFromCommandLine(Object)
CommandLine.ToCommandLineArgs(Object, Func<Object, Boolean>)
ListUtil.DepthFirstTraversal<T>(T, Func<T, IEnumerable<T>>)
EnumerableExtensions.SingleItemAsEnumerable<T>(T)
EventUtils.RaiseEvent<TEventArgs>(Object, String, TEventArgs)
PredicateUtils.MatchesAll<TEnumerable, T>(T, TEnumerable)
PredicateUtils.MatchesAll<T>(T, Func<T, Boolean>[])
PredicateUtils.MatchesAny<TEnumerable, T>(T, TEnumerable)
ReflectionUtils.PropertyValue<T>(Object, PropertyInfo)
ReflectionUtils.TryGetPropertyValueByName<T>(Object, String, out T)
ReflectionUtils.GetPropertyValueByName<T>(Object, String)
ReflectionUtils.SetPropertyByName(Object, String, Object)
ReflectionUtils.GetStructPropertyByName<T>(Object, String)
ReflectionUtils.GetStringPropertyByName(Object, String)
ReflectionUtils.ZipByProperty<T>(Object, Object, Object, Func<T, T, T>)
UdpClientExtensions.SendData(IUdpClient, Byte[], Int32, Int32, Byte)
UdpPeerExtensions.SendData(IUdpPeer, Object, Byte[], Int32, Int32, Byte)
UdpPeerExtensions.SendData(IUdpPeer, IEnumerable<Object>, Byte[], Int32, Int32, Byte)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾