Test()
{
m_timeoutTimer.setSingleShot(true);
- m_connection = SshConnection::create();
+ m_connection = SshConnection::create(SshConnectionParameters(SshConnectionParameters::DefaultProxy));
if (m_connection->state() != SshConnection::Unconnected) {
qDebug("Error: Newly created SSH connection has state %d.",
m_connection->state());
{
if (m_connection)
disconnect(m_connection.data(), 0, this, 0);
- m_connection = SshConnection::create();
+ m_connection = SshConnection::create(m_testSet.first().params);
connect(m_connection.data(), SIGNAL(connected()), this,
SLOT(handleConnected()));
connect(m_connection.data(), SIGNAL(disconnected()), this,
m_timeoutTimer.stop();
m_timeoutTimer.setInterval(qMax(10000, nextItem.params.timeout * 1000));
qDebug("Testing: %s", nextItem.description);
- m_connection->connectToHost(m_testSet.first().params);
+ m_connection->connectToHost();
}
SshConnection::Ptr m_connection;
void SftpTest::run()
{
- m_connection = SshConnection::create();
+ m_connection = SshConnection::create(m_parameters.sshParams);
connect(m_connection.data(), SIGNAL(connected()), this,
SLOT(handleConnected()));
connect(m_connection.data(), SIGNAL(error(Utils::SshError)), this,
std::cout << "Connecting to host '"
<< qPrintable(m_parameters.sshParams.host) << "'..." << std::endl;
m_state = Connecting;
- m_connection->connectToHost(m_parameters.sshParams);
+ m_connection->connectToHost();
}
void SftpTest::handleConnected()