WIP
parent
f2c4a1dd5c
commit
0a92d76e54
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue