com.sshtools.j2ssh.transport
Class TransportProtocolState

java.lang.Object
  |
  +--com.sshtools.j2ssh.transport.TransportProtocolState

public class TransportProtocolState
extends java.lang.Object

The transport protocol can only send specific transport messages whilst in key exchange. This can happen at any time if the remote or local side send another SSH_MSG_KEX_INIT. This state object allows the transport layer to maintain its state so that it can queue messages received from attached services whilst completing the key exchange.

Version:
1.0
Author:
Lee David Painter ( lee@sshtools.com )

Constructor Summary
TransportProtocolState()
          The Constructor
 
Method Summary
 boolean isReady()
          Returns whether the transport protocol is ready
 void setReadyState(boolean isReady)
          Sets the state as ready
 void waitForReadyState()
          Waits for a ready state
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransportProtocolState

public TransportProtocolState()
The Constructor

Method Detail

isReady

public boolean isReady()
Returns whether the transport protocol is ready

Returns:

waitForReadyState

public void waitForReadyState()
Waits for a ready state


setReadyState

public void setReadyState(boolean isReady)
Sets the state as ready

Parameters:
isReady -


Copyright © 2002 Sshtools.com. All Rights Reserved.