Show / Hide Table of Contents

Class UdpDataMessage

Inheritance
System.Object
UdpDataMessage
Namespace: Eco.Shared.Networking
Assembly: Eco.Shared.dll
Syntax
public sealed class UdpDataMessage : ValueType

Constructors

UdpDataMessage(IPEndPoint, ReadOnlySpan<Byte>, Double, Object, Byte)

Declaration
public UdpDataMessage(IPEndPoint senderEndPoint, ReadOnlySpan<byte> data, double receiveTime, object senderConnection, byte channel = 0)
Parameters
Type Name Description
System.Net.IPEndPoint senderEndPoint
System.ReadOnlySpan<System.Byte> data
System.Double receiveTime
System.Object senderConnection
System.Byte channel

Fields

Channel

Declaration
public readonly byte Channel
Field Value
Type Description
System.Byte

Data

Declaration
public readonly ReadOnlySpan<byte> Data
Field Value
Type Description
System.ReadOnlySpan<System.Byte>

ReceiveTime

Declaration
public readonly double ReceiveTime
Field Value
Type Description
System.Double

SenderConnection

Declaration
public readonly object SenderConnection
Field Value
Type Description
System.Object

SenderEndPoint

Declaration
public readonly IPEndPoint SenderEndPoint
Field Value
Type Description
System.Net.IPEndPoint

Methods

GetBytesToRead(Int32)

Declaration
public int GetBytesToRead(int readPosition)
Parameters
Type Name Description
System.Int32 readPosition
Returns
Type Description
System.Int32

Extension Methods

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>)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾