public class MixPacket
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static short |
FLAG_CHANNEL_CLOSE |
static short |
FLAG_CHANNEL_DATA |
static short |
FLAG_CHANNEL_DUMMY |
static short |
FLAG_CHANNEL_OPEN |
static short |
FLAG_DEBUG |
Constructor and Description |
---|
MixPacket(java.io.InputStream a_inputStream,
ISymCipher a_inputStreamCipher)
Tries to read a mix packet from the given InputStream and decrypts
its payload using the given ISymCipher.
|
MixPacket(int a_channelId)
Creates a Mixpacket with the given channel ID and random bytes as the
payload.
|
Modifier and Type | Method and Description |
---|---|
short |
getChannelFlags() |
int |
getChannelId()
Returns the identifier of the channel the mix packet is supposed to
be sent in.
|
static int |
getPacketSize() |
byte[] |
getPayloadData()
Returns the internal payload data buffer without headers.
|
static int |
getPayloadSize()
Returns the size of the internal payload buffer.
|
byte[] |
getRawPacket()
Returns the byte array representation of the mix packet with
channel ID, channel flags and the payload.
|
java.util.Vector |
getSendCallbackHandlers() |
void |
setChannelFlags(short a_channelFlags) |
public static final short FLAG_CHANNEL_DATA
public static final short FLAG_CHANNEL_CLOSE
public static final short FLAG_CHANNEL_OPEN
public static final short FLAG_CHANNEL_DUMMY
public static final short FLAG_DEBUG
public MixPacket(java.io.InputStream a_inputStream, ISymCipher a_inputStreamCipher) throws java.io.IOException
a_inputStream
- a_inputStreamCipher
- java.io.IOException
public MixPacket(int a_channelId)
a_channelId
- public static int getPacketSize()
public static int getPayloadSize()
public int getChannelId()
public short getChannelFlags()
public void setChannelFlags(short a_channelFlags)
public byte[] getPayloadData()
public byte[] getRawPacket()
anon.client.Multiplexer#sendPacket(MixPacket)}
public java.util.Vector getSendCallbackHandlers()
Copyright © 2023. All rights reserved.