public class TransportManager
extends java.lang.Object
| Constructor and Description |
|---|
TransportManager(java.lang.String host,
int port) |
| Modifier and Type | Method and Description |
|---|---|
void |
changeRecvCipher(BlockCipher bc,
MAC mac) |
void |
changeSendCipher(BlockCipher bc,
MAC mac) |
void |
close(java.lang.Throwable cause,
boolean useDisconnectPacket) |
void |
forceKeyExchange(CryptoWishList cwl,
DHGexParameters dhgex) |
ConnectionInfo |
getConnectionInfo(int kexNumber) |
int |
getPacketOverheadEstimate() |
java.lang.Throwable |
getReasonClosedCause() |
byte[] |
getSessionIdentifier() |
ClientServerHello |
getVersionInfo() |
void |
initialize(CryptoWishList cwl,
ServerHostKeyVerifier verifier,
DHGexParameters dhgex,
int connectTimeout,
int readTimeout,
java.security.SecureRandom rnd,
ProxyData proxyData) |
void |
initialize(CryptoWishList cwl,
ServerHostKeyVerifier verifier,
DHGexParameters dhgex,
int connectTimeout,
java.security.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(java.util.Vector monitors) |
void |
setSoTimeout(int timeout) |
void |
setTcpNoDelay(boolean state) |
public TransportManager(java.lang.String host,
int port)
throws java.io.IOException
java.io.IOExceptionpublic int getPacketOverheadEstimate()
public void setTcpNoDelay(boolean state)
throws java.io.IOException
java.io.IOExceptionpublic void setSoTimeout(int timeout)
throws java.io.IOException
java.io.IOExceptionpublic ConnectionInfo getConnectionInfo(int kexNumber) throws java.io.IOException
java.io.IOExceptionpublic ClientServerHello getVersionInfo()
public java.lang.Throwable getReasonClosedCause()
public byte[] getSessionIdentifier()
public void close(java.lang.Throwable cause,
boolean useDisconnectPacket)
public void initialize(CryptoWishList cwl, ServerHostKeyVerifier verifier, DHGexParameters dhgex, int connectTimeout, java.security.SecureRandom rnd, ProxyData proxyData) throws java.io.IOException
java.io.IOExceptionpublic void initialize(CryptoWishList cwl, ServerHostKeyVerifier verifier, DHGexParameters dhgex, int connectTimeout, int readTimeout, java.security.SecureRandom rnd, ProxyData proxyData) throws java.io.IOException
java.io.IOExceptionpublic void registerMessageHandler(MessageHandler mh, int low, int high)
public void removeMessageHandler(MessageHandler mh, int low, int high)
public void sendKexMessage(byte[] msg)
throws java.io.IOException
java.io.IOExceptionpublic void kexFinished()
throws java.io.IOException
java.io.IOExceptionpublic void forceKeyExchange(CryptoWishList cwl, DHGexParameters dhgex) throws java.io.IOException
java.io.IOExceptionpublic void changeRecvCipher(BlockCipher bc, MAC mac)
public void changeSendCipher(BlockCipher bc, MAC mac)
public void sendAsynchronousMessage(byte[] msg)
throws java.io.IOException
java.io.IOExceptionpublic void setConnectionMonitors(java.util.Vector monitors)
public void sendMessage(byte[] msg)
throws java.io.IOException
java.io.IOExceptionpublic void receiveLoop()
throws java.io.IOException
java.io.IOException