aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Net/ISocketFactory.cs
blob: 62b87d9f57f576214d59f0de20dd065964d45ded (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
using System.Net;
using System.Net.Sockets;

namespace MediaBrowser.Model.Net;

/// <summary>
/// Implemented by components that can create specific socket configurations.
/// </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 new unicast socket using the specified local port number.</returns>
    Socket CreateUdpBroadcastSocket(int localPort);
}