-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathCrestronIPEndPoint.cs
More file actions
42 lines (36 loc) · 984 Bytes
/
CrestronIPEndPoint.cs
File metadata and controls
42 lines (36 loc) · 984 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Crestron.SimplSharp;
namespace Crestron.SimplSharp
{
public class CrestronIPEndPoint : IPEndPoint
{
public EthernetAdapterType AdapterType { get; set; }
public CrestronIPEndPoint (IPAddress address, int port)
: base (address, port)
{
AdapterType = EthernetAdapterType.EthernetUnknownAdapter;
}
public CrestronIPEndPoint (long address, int port)
: base (address, port)
{
AdapterType = EthernetAdapterType.EthernetUnknownAdapter;
}
public CrestronIPEndPoint (IPAddress address, int port, EthernetAdapterType adapterType)
: base (address, port)
{
AdapterType = adapterType;
}
public CrestronIPEndPoint (long address, int port, EthernetAdapterType adapterType)
: base (address, port)
{
AdapterType = adapterType;
}
public CrestronIPEndPoint (IPEndPoint endpoint)
: this (endpoint.Address, endpoint.Port)
{
}
}
}