public class TransportConnection
extends java.lang.Object
| Constructor | Description |
|---|---|
TransportConnection(java.io.InputStream is,
java.io.OutputStream os,
java.security.SecureRandom rnd) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
changeRecvCipher(BlockCipher bc,
MAC mac) |
|
void |
changeSendCipher(BlockCipher bc,
MAC mac) |
|
int |
getPacketOverheadEstimate() |
|
int |
peekNextMessageLength() |
|
int |
receiveMessage(byte[] buffer,
int off,
int len) |
|
void |
sendMessage(byte[] message) |
|
void |
sendMessage(byte[] message,
int off,
int len) |
|
void |
sendMessage(byte[] message,
int off,
int len,
int padd) |
public TransportConnection(java.io.InputStream is,
java.io.OutputStream os,
java.security.SecureRandom rnd)
public void changeRecvCipher(BlockCipher bc, MAC mac)
public void changeSendCipher(BlockCipher bc, MAC mac)
public void sendMessage(byte[] message)
throws java.io.IOException
java.io.IOExceptionpublic void sendMessage(byte[] message,
int off,
int len)
throws java.io.IOException
java.io.IOExceptionpublic int getPacketOverheadEstimate()
public void sendMessage(byte[] message,
int off,
int len,
int padd)
throws java.io.IOException
java.io.IOExceptionpublic int peekNextMessageLength()
throws java.io.IOException
java.io.IOExceptionpublic int receiveMessage(byte[] buffer,
int off,
int len)
throws java.io.IOException
java.io.IOException