jellyfin/MediaBrowser.Model/Net/ISocketFactory.cs

18 lines
542 B
C#
Raw Normal View History

using System.Net;
using System.Net.Sockets;
2018-12-27 18:27:57 -05:00
2023-02-20 10:58:22 -05:00
namespace MediaBrowser.Model.Net;
/// <summary>
/// Implemented by components that can create specific socket configurations.
/// </summary>
public interface ISocketFactory
2018-12-27 18:27:57 -05:00
{
/// <summary>
2023-02-20 10:58:22 -05:00
/// Creates a new unicast socket using the specified local port number.
2018-12-27 18:27:57 -05:00
/// </summary>
2023-02-20 10:58:22 -05:00
/// <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);
2018-12-27 18:27:57 -05:00
}