// <copyright file="ISocketFactory.cs" company="PlaceholderCompany">
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>

namespace MediaBrowser.Model.Net;

using global::System.Net;
using global::System.Net.Sockets;

/// <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);
}
