SocketFactory
Represents a factory to create Socket instances.
using System.Net.Sockets;
namespace Renci.SshNet.Connection
{
internal sealed class SocketFactory : ISocketFactory
{
public Socket Create(AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType)
{
return new Socket(addressFamily, socketType, protocolType) {
NoDelay = true
};
}
}
}