anon.client
Class MixPacket

java.lang.Object
  extended by anon.client.MixPacket

public class MixPacket
extends java.lang.Object

Author:
Stefan Lieske

Field Summary
private  short m_channelFlags
           
private  int m_channelId
           
private  byte[] m_payloadData
           
private  java.util.Vector m_sendCallbackHandlers
           
private static java.security.SecureRandom ms_secureRandom
           
private static int NON_DATA_LENGTH
           
private static int PACKET_SIZE
           
 
Constructor Summary
MixPacket(java.io.InputStream a_inputStream, SymCipher a_inputStreamCipher)
           
MixPacket(int a_channelId)
           
 
Method Summary
 short getChannelFlags()
           
 int getChannelId()
           
static int getPacketSize()
           
 byte[] getPayloadData()
           
static int getPayloadSize()
           
 byte[] getRawPacket()
           
 java.util.Vector getSendCallbackHandlers()
           
 void setChannelFlags(short a_channelFlags)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PACKET_SIZE

private static final int PACKET_SIZE
See Also:
Constant Field Values

NON_DATA_LENGTH

private static final int NON_DATA_LENGTH
See Also:
Constant Field Values

ms_secureRandom

private static java.security.SecureRandom ms_secureRandom

m_channelId

private int m_channelId

m_channelFlags

private short m_channelFlags

m_payloadData

private byte[] m_payloadData

m_sendCallbackHandlers

private java.util.Vector m_sendCallbackHandlers
Constructor Detail

MixPacket

public MixPacket(java.io.InputStream a_inputStream,
                 SymCipher a_inputStreamCipher)
          throws java.io.IOException
Throws:
java.io.IOException

MixPacket

public MixPacket(int a_channelId)
Method Detail

getPacketSize

public static int getPacketSize()

getPayloadSize

public static int getPayloadSize()

getChannelId

public int getChannelId()

getChannelFlags

public short getChannelFlags()

setChannelFlags

public void setChannelFlags(short a_channelFlags)

getPayloadData

public byte[] getPayloadData()

getRawPacket

public byte[] getRawPacket()

getSendCallbackHandlers

public java.util.Vector getSendCallbackHandlers()