confused screaming
This commit is contained in:
18
PVHelpers/NetEndPointFromIP.cs
Normal file
18
PVHelpers/NetEndPointFromIP.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System.Net;
|
||||
|
||||
namespace PVHelpers
|
||||
{
|
||||
public class NetEndPointFromIP : INetEndPoint
|
||||
{
|
||||
public IPEndPoint EndPoint { get; }
|
||||
public IPAddress Address => this.EndPoint.Address;
|
||||
public Int32 Port => this.EndPoint.Port;
|
||||
|
||||
public NetEndPointFromIP(IPEndPoint endpoint)
|
||||
{
|
||||
this.EndPoint = endpoint;
|
||||
}
|
||||
|
||||
public NetEndPointFromIP(IPAddress address, Int32 port) : this(new(address, port)) { }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user