anon.mixminion
Class MixminionPOPChannel

java.lang.Object
  extended by anon.shared.AbstractChannel
      extended by 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
 
Fields inherited from class anon.shared.AbstractChannel
m_bIsClosed, m_bIsClosedByPeer, m_id
 
Fields inherited from interface anon.AnonChannel
HTTP, SMTP, SOCKS
 
Constructor Summary
MixminionPOPChannel()
           
 
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 anon.shared.AbstractChannel
close, closedByPeer, finalize, getInputStream, getOutputStream, hashCode, isClosed, recv
 
Methods inherited from class java.lang.Object
clone, equals, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

MixminionPOPChannel

public MixminionPOPChannel()
Method Detail

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.