anon.mixminion
Class MixminionSMTPChannel

java.lang.Object
  extended by anon.shared.AbstractChannel
      extended by anon.mixminion.MixminionSMTPChannel
All Implemented Interfaces:
AnonChannel

public class MixminionSMTPChannel
extends AbstractChannel

This class implements a channel,which speaks SMTP


Field Summary
private  java.util.Vector m_receiver
          a Receiver-List of the eMail
private  int m_state
          the current State of the SMTPChannel
private  java.lang.String m_text
          the Text of the eMail
 
Fields inherited from class anon.shared.AbstractChannel
m_bIsClosed, m_bIsClosedByPeer, m_id
 
Fields inherited from interface anon.AnonChannel
HTTP, SMTP, SOCKS
 
Constructor Summary
MixminionSMTPChannel()
           
 
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 SMTPChannel


m_receiver

private java.util.Vector m_receiver
a Receiver-List of the eMail


m_text

private java.lang.String m_text
the Text of the eMail

Constructor Detail

MixminionSMTPChannel

public MixminionSMTPChannel()
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.