mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-24 01:34:45 +03:00
Use System.Net abstractions instead of raw socket
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user