ISocketFactory.cs 542 B

1234567891011121314151617
  1. using System.Net;
  2. using System.Net.Sockets;
  3. namespace MediaBrowser.Model.Net;
  4. /// <summary>
  5. /// Implemented by components that can create specific socket configurations.
  6. /// </summary>
  7. public interface ISocketFactory
  8. {
  9. /// <summary>
  10. /// Creates a new unicast socket using the specified local port number.
  11. /// </summary>
  12. /// <param name="localPort">The local port to bind to.</param>
  13. /// <returns>A new unicast socket using the specified local port number.</returns>
  14. Socket CreateUdpBroadcastSocket(int localPort);
  15. }