Package com.trilead.ssh2.transport
Class TransportConnection
- java.lang.Object
-
- com.trilead.ssh2.transport.TransportConnection
-
public class TransportConnection extends Object
TransportConnection.- Version:
- $Id: TransportConnection.java,v 1.1 2007/10/15 12:49:56 cplattne Exp $
- Author:
- Christian Plattner, plattner@trilead.com
-
-
Constructor Summary
Constructors Constructor Description TransportConnection(InputStream is, OutputStream os, SecureRandom rnd)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchangeRecvCipher(BlockCipher bc, MAC mac)voidchangeSendCipher(BlockCipher bc, MAC mac)intgetPacketOverheadEstimate()intpeekNextMessageLength()intreceiveMessage(byte[] buffer, int off, int len)voidsendMessage(byte[] message)voidsendMessage(byte[] message, int off, int len)voidsendMessage(byte[] message, int off, int len, int padd)
-
-
-
Constructor Detail
-
TransportConnection
public TransportConnection(InputStream is, OutputStream os, SecureRandom rnd)
-
-
Method Detail
-
changeRecvCipher
public void changeRecvCipher(BlockCipher bc, MAC mac)
-
changeSendCipher
public void changeSendCipher(BlockCipher bc, MAC mac)
-
sendMessage
public void sendMessage(byte[] message) throws IOException- Throws:
IOException
-
sendMessage
public void sendMessage(byte[] message, int off, int len) throws IOException- Throws:
IOException
-
getPacketOverheadEstimate
public int getPacketOverheadEstimate()
-
sendMessage
public void sendMessage(byte[] message, int off, int len, int padd) throws IOException- Throws:
IOException
-
peekNextMessageLength
public int peekNextMessageLength() throws IOException- Throws:
IOException
-
receiveMessage
public int receiveMessage(byte[] buffer, int off, int len) throws IOException- Throws:
IOException
-
-