dev_timestamp
Harald Wolff 2019-05-09 09:53:52 +02:00
parent f2c4a1dd5c
commit 0a92d76e54
1 changed files with 11 additions and 0 deletions

View File

@ -1,4 +1,5 @@
using System;
using System.Net;
namespace ln.types.net
{
public class Endpoint4
@ -30,5 +31,15 @@ namespace ln.types.net
return false;
}
public static implicit operator IPEndPoint(Endpoint4 endpoint)
{
return new IPEndPoint(endpoint.IP, endpoint.Port);
}
public static implicit operator Endpoint4(IPEndPoint endpoint)
{
return new Endpoint4(endpoint.Address, endpoint.Port);
}
}
}