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
IOException
public void sendMessage(byte[] message, int off, int len) throws IOException
IOException
public int getPacketOverheadEstimate()
public void sendMessage(byte[] message, int off, int len, int padd) throws IOException
IOException
public int peekNextMessageLength() throws IOException
IOException
public int receiveMessage(byte[] buffer, int off, int len) throws IOException
IOException
Copyright © 2023. All rights reserved.