Merge pull request #1581 from Bond-009/socket1

Use System.Net abstractions instead of raw socket
This commit is contained in:
dkanada
2019-08-13 19:58:57 -07:00
committed by GitHub
5 changed files with 129 additions and 277 deletions

View File

@@ -17,8 +17,6 @@ namespace MediaBrowser.Model.Net
ISocket CreateUdpBroadcastSocket(int localPort);
ISocket CreateTcpSocket(IPAddress remoteAddress, int remotePort);
/// <summary>
/// Creates a new unicast socket using the specified local port number.
/// </summary>
@@ -35,14 +33,4 @@ namespace MediaBrowser.Model.Net
Stream CreateNetworkStream(ISocket socket, bool ownsSocket);
}
public enum SocketType
{
Stream
}
public enum ProtocolType
{
Tcp
}
}