mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-08 20:38:24 +02:00
17 lines
542 B
C#
17 lines
542 B
C#
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);
|
|
}
|