ch.ethz.ssh2.transport
Class TransportManager

java.lang.Object
  extended by ch.ethz.ssh2.transport.TransportManager

public class TransportManager
extends Object

TransportManager.

Version:
$Id$
Author:
Christian Plattner

Constructor Summary
TransportManager(String host, int port)
           
 
Method Summary
 void changeRecvCipher(BlockCipher bc, MAC mac)
           
 void changeSendCipher(BlockCipher bc, MAC mac)
           
 void close(Throwable cause, boolean useDisconnectPacket)
           
 void forceKeyExchange(CryptoWishList cwl, DHGexParameters dhgex)
           
 ConnectionInfo getConnectionInfo(int kexNumber)
           
 int getPacketOverheadEstimate()
           
 Throwable getReasonClosedCause()
           
 byte[] getSessionIdentifier()
           
 void initialize(String identification, CryptoWishList cwl, ServerHostKeyVerifier verifier, DHGexParameters dhgex, int connectTimeout, SecureRandom rnd, ProxyData proxyData)
           
 void kexFinished()
           
 void receiveLoop()
           
 void registerMessageHandler(MessageHandler mh, int low, int high)
           
 void removeMessageHandler(MessageHandler mh, int low, int high)
           
 void sendAsynchronousMessage(byte[] msg)
           
 void sendKexMessage(byte[] msg)
           
 void sendMessage(byte[] msg)
           
 void setConnectionMonitors(List<ConnectionMonitor> monitors)
           
 void setSoTimeout(int timeout)
           
 void setTcpNoDelay(boolean state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransportManager

public TransportManager(String host,
                        int port)
                 throws IOException
Throws:
IOException
Method Detail

getPacketOverheadEstimate

public int getPacketOverheadEstimate()

setTcpNoDelay

public void setTcpNoDelay(boolean state)
                   throws IOException
Throws:
IOException

setSoTimeout

public void setSoTimeout(int timeout)
                  throws IOException
Throws:
IOException

getConnectionInfo

public ConnectionInfo getConnectionInfo(int kexNumber)
                                 throws IOException
Throws:
IOException

getReasonClosedCause

public Throwable getReasonClosedCause()

getSessionIdentifier

public byte[] getSessionIdentifier()

close

public void close(Throwable cause,
                  boolean useDisconnectPacket)

initialize

public void initialize(String identification,
                       CryptoWishList cwl,
                       ServerHostKeyVerifier verifier,
                       DHGexParameters dhgex,
                       int connectTimeout,
                       SecureRandom rnd,
                       ProxyData proxyData)
                throws IOException
Throws:
IOException

registerMessageHandler

public void registerMessageHandler(MessageHandler mh,
                                   int low,
                                   int high)

removeMessageHandler

public void removeMessageHandler(MessageHandler mh,
                                 int low,
                                 int high)

sendKexMessage

public void sendKexMessage(byte[] msg)
                    throws IOException
Throws:
IOException

kexFinished

public void kexFinished()
                 throws IOException
Throws:
IOException

forceKeyExchange

public void forceKeyExchange(CryptoWishList cwl,
                             DHGexParameters dhgex)
                      throws IOException
Throws:
IOException

changeRecvCipher

public void changeRecvCipher(BlockCipher bc,
                             MAC mac)

changeSendCipher

public void changeSendCipher(BlockCipher bc,
                             MAC mac)

sendAsynchronousMessage

public void sendAsynchronousMessage(byte[] msg)
                             throws IOException
Throws:
IOException

setConnectionMonitors

public void setConnectionMonitors(List<ConnectionMonitor> monitors)

sendMessage

public void sendMessage(byte[] msg)
                 throws IOException
Throws:
IOException

receiveLoop

public void receiveLoop()
                 throws IOException
Throws:
IOException


Copyright © 2011. All Rights Reserved.