Package com.trilead.ssh2.transport
Class TransportManager
java.lang.Object
com.trilead.ssh2.transport.TransportManager
TransportManager.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Advertised maximum SSH packet size that the other side can send to us. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
changeRecvCipher
(BlockCipher bc, MAC mac) void
changeSendCipher
(BlockCipher bc, MAC mac) void
void
forceKeyExchange
(CryptoWishList cwl, DHGexParameters dhgex) getConnectionInfo
(int kexNumber) int
If the socket connection is lost (either by this side closing down or the other side closing down), return a non-null object indicating the cause of the connection loss.byte[]
void
initialize
(CryptoWishList cwl, ServerHostKeyVerifier verifier, DHGexParameters dhgex, int connectTimeout, int readTimeout, SecureRandom rnd, ProxyData proxyData) void
initialize
(CryptoWishList cwl, ServerHostKeyVerifier verifier, DHGexParameters dhgex, int connectTimeout, SecureRandom rnd, ProxyData proxyData) boolean
void
void
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
(Vector monitors) void
setSoTimeout
(int timeout) void
setTcpNoDelay
(boolean state)
-
Field Details
-
MAX_PACKET_SIZE
public static final int MAX_PACKET_SIZEAdvertised maximum SSH packet size that the other side can send to us.
-
-
Constructor Details
-
TransportManager
- Throws:
IOException
-
-
Method Details
-
getPacketOverheadEstimate
public int getPacketOverheadEstimate() -
setTcpNoDelay
- Throws:
IOException
-
setSoTimeout
- Throws:
IOException
-
getConnectionInfo
- Throws:
IOException
-
getVersionInfo
-
getReasonClosedCause
If the socket connection is lost (either by this side closing down or the other side closing down), return a non-null object indicating the cause of the connection loss. -
isConnectionClosed
public boolean isConnectionClosed() -
getSessionIdentifier
public byte[] getSessionIdentifier() -
close
-
initialize
public void initialize(CryptoWishList cwl, ServerHostKeyVerifier verifier, DHGexParameters dhgex, int connectTimeout, SecureRandom rnd, ProxyData proxyData) throws IOException - Throws:
IOException
-
initialize
public void initialize(CryptoWishList cwl, ServerHostKeyVerifier verifier, DHGexParameters dhgex, int connectTimeout, int readTimeout, SecureRandom rnd, ProxyData proxyData) throws IOException - Throws:
IOException
-
registerMessageHandler
-
removeMessageHandler
-
sendKexMessage
- Throws:
IOException
-
kexFinished
- Throws:
IOException
-
forceKeyExchange
- Throws:
IOException
-
changeRecvCipher
-
changeSendCipher
-
sendAsynchronousMessage
- Throws:
IOException
-
setConnectionMonitors
-
sendMessage
- Throws:
IOException
-
receiveLoop
- Throws:
IOException
-