Class UdpDataMessage
Inheritance
System.Object
UdpDataMessage
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