public class TransportManager extends Object
Modifier and Type | Field and Description |
---|---|
static int |
MAX_PACKET_SIZE
Advertised maximum SSH packet size that the other side can send to us.
|
Constructor and Description |
---|
TransportManager(String host,
int port) |
public static final int MAX_PACKET_SIZE
public TransportManager(String host, int port) throws IOException
IOException
public int getPacketOverheadEstimate()
public void setTcpNoDelay(boolean state) throws IOException
IOException
public void setSoTimeout(int timeout) throws IOException
IOException
public ConnectionInfo getConnectionInfo(int kexNumber) throws IOException
IOException
public ClientServerHello getVersionInfo()
public Throwable getReasonClosedCause()
public byte[] getSessionIdentifier()
public void close(Throwable cause, boolean useDisconnectPacket)
public void initialize(CryptoWishList cwl, ServerHostKeyVerifier verifier, DHGexParameters dhgex, int connectTimeout, SecureRandom rnd, ProxyData proxyData) throws IOException
IOException
public void initialize(CryptoWishList cwl, ServerHostKeyVerifier verifier, DHGexParameters dhgex, int connectTimeout, int readTimeout, SecureRandom rnd, ProxyData proxyData) throws IOException
IOException
public void registerMessageHandler(MessageHandler mh, int low, int high)
public void removeMessageHandler(MessageHandler mh, int low, int high)
public void sendKexMessage(byte[] msg) throws IOException
IOException
public void kexFinished() throws IOException
IOException
public void forceKeyExchange(CryptoWishList cwl, DHGexParameters dhgex) throws IOException
IOException
public void changeRecvCipher(BlockCipher bc, MAC mac)
public void changeSendCipher(BlockCipher bc, MAC mac)
public void sendAsynchronousMessage(byte[] msg) throws IOException
IOException
public void setConnectionMonitors(Vector monitors)
public void sendMessage(byte[] msg) throws IOException
IOException
public void receiveLoop() throws IOException
IOException
Copyright © 2014. All Rights Reserved.