public class TransportConnection extends Object
| Constructor and Description |
|---|
TransportConnection(InputStream is,
OutputStream os,
SecureRandom rnd) |
| Modifier and Type | Method and 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(InputStream is, OutputStream os, SecureRandom rnd)
public void changeRecvCipher(BlockCipher bc, MAC mac)
public void changeSendCipher(BlockCipher bc, MAC mac)
public void sendMessage(byte[] message)
throws IOException
IOExceptionpublic void sendMessage(byte[] message,
int off,
int len)
throws IOException
IOExceptionpublic int getPacketOverheadEstimate()
public void sendMessage(byte[] message,
int off,
int len,
int padd)
throws IOException
IOExceptionpublic int peekNextMessageLength()
throws IOException
IOExceptionpublic int receiveMessage(byte[] buffer,
int off,
int len)
throws IOException
IOExceptionCopyright © 2014. All rights reserved.