This commit is contained in:
Shikhar Bhushan
2010-03-07 21:28:27 +01:00
parent fc5bf6cca0
commit 0cb5ee6987
2 changed files with 3 additions and 1 deletions

View File

@@ -636,7 +636,7 @@ public class SSHClient
rekey();
}
/** On connection establishment, also initialize the SSH transport via {@link Transport#init} and {@link #doKex()}. */
/** On connection establishment, also initializes the SSH transport via {@link Transport#init} and {@link #doKex()}. */
@Override
protected void onConnect()
throws IOException {

View File

@@ -94,8 +94,10 @@ public interface Transport
*/
void setTimeout(int timeout);
/** @return the interval in seconds at which a heartbeat message is sent to the server */
int getHeartbeatInterval();
/** @param interval the interval in seconds, {@code 0} means no hearbeat */
void setHeartbeatInterval(int interval);
/** @return the hostname to which this transport is connected. */