SSH: Introduce keep-alive mechanism.

Neither TCP nor the SSH protocol offer a built-in way to reliably
notice connection loss, so we implement our own.

Task-number: QTCREATORBUG-3783
This commit is contained in:
Christian Kandeler
2011-02-11 14:00:54 +01:00
parent 8ae0ad9442
commit 0d430277d4
9 changed files with 97 additions and 2 deletions

View File

@@ -130,6 +130,16 @@ void SshOutgoingPacket::generateRequestFailurePacket()
init(SSH_MSG_REQUEST_FAILURE).finalize();
}
void SshOutgoingPacket::generateIgnorePacket()
{
init(SSH_MSG_IGNORE).finalize();
}
void SshOutgoingPacket::generateInvalidMessagePacket()
{
init(SSH_MSG_INVALID).finalize();
}
void SshOutgoingPacket::generateSessionPacket(quint32 channelId,
quint32 windowSize, quint32 maxPacketSize)
{