2019-07-07 19:03:26 +00:00
|
|
|
using System.Net;
|
2023-02-16 17:15:12 +00:00
|
|
|
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
|
|
|
}
|