From 7cbc76af27637fca10bca21d0b343f96b1a02b6a Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 3 Mar 2017 00:53:21 -0500 Subject: 3.2.5.4 --- Emby.Common.Implementations/Net/NetAcceptSocket.cs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Emby.Common.Implementations/Net/NetAcceptSocket.cs') 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 -- cgit v1.2.3