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