smtp_relayserver
Class ReceiveThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--smtp_relayserver.ReceiveThread
All Implemented Interfaces:
java.lang.Runnable

public class ReceiveThread
extends java.lang.Thread

This class creates a SMTP mail receive thread based on a existing socket connection. To start the SMTP buissness, it is needes to call the method start().


Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ReceiveThread(java.io.InputStream is, java.io.OutputStream os, java.net.Socket s, SMTPRelayServer smtpSrv)
          Constructs a receiver thread for a mail.
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReceiveThread

public ReceiveThread(java.io.InputStream is,
                     java.io.OutputStream os,
                     java.net.Socket s,
                     SMTPRelayServer smtpSrv)
Constructs a receiver thread for a mail. The thread takes the passed two streams from the existing socket connection to initialize itself.
Parameters:
is - The InputStream of the socket connection
os - The OutputStream of the socket connection
s - The existing socket connection
smtpSrv - The SMTPRelayServer who uses this thread
Method Detail

run

public void run()
Overrides:
run in class java.lang.Thread