mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-30 22:06:29 +01:00
Merge pull request #2264 from Bond-009/discovery
Clean up server discovery code
This commit is contained in:
@@ -14,8 +14,6 @@ namespace MediaBrowser.Model.Net
|
||||
|
||||
Task<SocketReceiveResult> ReceiveAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken);
|
||||
|
||||
int Receive(byte[] buffer, int offset, int count);
|
||||
|
||||
IAsyncResult BeginReceive(byte[] buffer, int offset, int count, AsyncCallback callback);
|
||||
SocketReceiveResult EndReceive(IAsyncResult result);
|
||||
|
||||
|
||||
@@ -8,13 +8,6 @@ namespace MediaBrowser.Model.Net
|
||||
/// </summary>
|
||||
public interface ISocketFactory
|
||||
{
|
||||
/// <summary>
|
||||
/// Creates a new unicast socket using the specified local port number.
|
||||
/// </summary>
|
||||
/// <param name="localPort">The local port to bind to.</param>
|
||||
/// <returns>A <see cref="ISocket"/> implementation.</returns>
|
||||
ISocket CreateUdpSocket(int localPort);
|
||||
|
||||
ISocket CreateUdpBroadcastSocket(int localPort);
|
||||
|
||||
/// <summary>
|
||||
@@ -30,7 +23,5 @@ namespace MediaBrowser.Model.Net
|
||||
/// <param name="localPort">The local port to bind to.</param>
|
||||
/// <returns>A <see cref="ISocket"/> implementation.</returns>
|
||||
ISocket CreateUdpMulticastSocket(string ipAddress, int multicastTimeToLive, int localPort);
|
||||
|
||||
Stream CreateNetworkStream(ISocket socket, bool ownsSocket);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user