using System;
using System.Net.Sockets;
namespace Renci.SshNet.Connection
{
///
/// Handles the SSH protocol version exchange.
///
internal interface IProtocolVersionExchange
{
///
/// Performs the SSH protocol version exchange.
///
/// The identification string of the SSH client.
/// A connected to the server.
/// The maximum time to wait for the server to respond.
///
/// The SSH identification of the server.
///
SshIdentification Start(string clientVersion, Socket socket, TimeSpan timeout);
System.Threading.Tasks.Task StartAsync(string clientVersion, Socket socket, System.Threading.CancellationToken cancellationToken);
}
}