aboutsummaryrefslogtreecommitdiff
path: root/Emby.Common.Implementations/Net/NetAcceptSocket.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Emby.Common.Implementations/Net/NetAcceptSocket.cs')
-rw-r--r--Emby.Common.Implementations/Net/NetAcceptSocket.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/Emby.Common.Implementations/Net/NetAcceptSocket.cs b/Emby.Common.Implementations/Net/NetAcceptSocket.cs
index 0672a9e98..731ad1b74 100644
--- a/Emby.Common.Implementations/Net/NetAcceptSocket.cs
+++ b/Emby.Common.Implementations/Net/NetAcceptSocket.cs
@@ -47,6 +47,13 @@ namespace Emby.Common.Implementations.Net
}
}
+ public void Connect(IpEndPointInfo endPoint)
+ {
+ var nativeEndpoint = NetworkManager.ToIPEndPoint(endPoint);
+
+ Socket.Connect(nativeEndpoint);
+ }
+
public void Close()
{
#if NET46