IConnector
interface IConnector
Represents a means to connect to a SSH endpoint.
using System.Net.Sockets;
using System.Threading;
using System.Threading.Tasks;
namespace Renci.SshNet.Connection
{
internal interface IConnector
{
Socket Connect(IConnectionInfo connectionInfo);
Task<Socket> ConnectAsync(IConnectionInfo connectionInfo, CancellationToken cancellationToken);
}
}