2
0

ISocketFactory.cs 757 B

123456789101112131415161718192021
  1. using System.Net.Sockets;
  2. namespace Renci.SshNet.Connection
  3. {
  4. /// <summary>
  5. /// Represents a factory to create <see cref="Socket"/> instances.
  6. /// </summary>
  7. internal interface ISocketFactory
  8. {
  9. /// <summary>
  10. /// Creates a <see cref="Socket"/> with the specified <see cref="SocketType"/>
  11. /// and <see cref="ProtocolType"/> that does not use the <c>Nagle</c> algorithm.
  12. /// </summary>
  13. /// <param name="socketType">The <see cref="SocketType"/>.</param>
  14. /// <param name="protocolType">The <see cref="ProtocolType"/>.</param>
  15. /// <returns>
  16. /// The <see cref="Socket"/>.
  17. /// </returns>
  18. Socket Create(SocketType socketType, ProtocolType protocolType);
  19. }
  20. }