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(); 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 @Override
protected void onConnect() protected void onConnect()
throws IOException { throws IOException {

View File

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