IConnector.cs 345 B

1234567891011121314
  1. using System.Net.Sockets;
  2. using System.Threading;
  3. namespace Renci.SshNet.Connection
  4. {
  5. internal interface IConnector
  6. {
  7. Socket Connect(IConnectionInfo connectionInfo);
  8. #if FEATURE_TAP
  9. System.Threading.Tasks.Task<Socket> ConnectAsync(IConnectionInfo connectionInfo, CancellationToken cancellationToken);
  10. #endif
  11. }
  12. }