init
This commit is contained in:
32
DataPRO/SLICECommands/MulticastCommands/MACTableEntry.cs
Normal file
32
DataPRO/SLICECommands/MulticastCommands/MACTableEntry.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
// ReSharper disable once InconsistentNaming
|
||||
namespace DTS.DASLib.Command.SLICE.MulticastCommands
|
||||
{
|
||||
public class MACTableEntry
|
||||
{
|
||||
public ushort Age { get; }
|
||||
public ushort Port { get; }
|
||||
public ushort Filter { get; }
|
||||
// ReSharper disable once InconsistentNaming
|
||||
public byte[] MAC { get; }
|
||||
|
||||
public MACTableEntry(ushort age, ushort port, ushort filter, byte[] mac)
|
||||
{
|
||||
Age = age;
|
||||
Port = port;
|
||||
Filter = filter;
|
||||
MAC = mac;
|
||||
}
|
||||
}
|
||||
|
||||
public class DiscoveredConnectedSlice
|
||||
{
|
||||
public string DeviceMAC { get; }
|
||||
public MACTableEntry[] ConnectedDevices { get; }
|
||||
|
||||
public DiscoveredConnectedSlice(string deviceMAC, MACTableEntry[] devices)
|
||||
{
|
||||
DeviceMAC = deviceMAC;
|
||||
ConnectedDevices = devices;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user