anon.mixminion
Class MixminionPOPChannel
java.lang.Object
anon.shared.AbstractChannel
anon.mixminion.MixminionPOPChannel
- All Implemented Interfaces:
- AnonChannel
public class MixminionPOPChannel
- extends AbstractChannel
- Author:
- Stefan Roenisch
Field Summary |
private java.lang.String[] |
m_deleted
|
private java.util.Vector |
m_messages
|
private int |
m_state
the current State of the POPChannel |
Method Summary |
protected void |
close_impl()
|
int |
getOutputBlockSize()
Returns a value that indicates the current optimum size of data to write.. |
protected void |
send(byte[] buff,
int len)
|
protected void |
toClient(java.lang.String message)
|
Methods inherited from class java.lang.Object |
clone, equals, getClass, notify, notifyAll, toString, wait, wait, wait |
m_state
private int m_state
- the current State of the POPChannel
m_messages
private java.util.Vector m_messages
m_deleted
private java.lang.String[] m_deleted
MixminionPOPChannel
public MixminionPOPChannel()
close_impl
protected void close_impl()
- Specified by:
close_impl
in class AbstractChannel
toClient
protected void toClient(java.lang.String message)
throws java.io.IOException
- Throws:
java.io.IOException
send
protected void send(byte[] buff,
int len)
throws java.io.IOException
- Specified by:
send
in class AbstractChannel
- Throws:
java.io.IOException
getOutputBlockSize
public int getOutputBlockSize()
- Description copied from interface:
AnonChannel
- Returns a value that indicates the current optimum size of data to write.. Because often
anon services transport the data splited into packets for optimum performance
it may be good to send data according to the packet size to avoid unneccessary overheads.
- Returns:
- the current optimum size for output data. If 1 is returned the size does not matter.