diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-03-03 00:53:21 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-03-03 00:53:21 -0500 |
| commit | 7cbc76af27637fca10bca21d0b343f96b1a02b6a (patch) | |
| tree | 4a9f055e10fa90384d74a635ca535e3de328f9bd /Emby.Common.Implementations/Net/NetAcceptSocket.cs | |
| parent | b9c12ca4a75a8efc4506b1711808931d77ed8c83 (diff) | |
3.2.5.4
Diffstat (limited to 'Emby.Common.Implementations/Net/NetAcceptSocket.cs')
| -rw-r--r-- | Emby.Common.Implementations/Net/NetAcceptSocket.cs | 7 |
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 |
