jclass
Class ServerTCPThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--jclass.SleepingThread
              |
              +--jclass.ServerTCPThread

public class ServerTCPThread
extends SleepingThread

A thread that runs as server on a specified port and accepts incomming TCP/IP connect requests.It then puts the incomming socket into a queue which should be parsed by one or more specific protocol threads that treat the requests.

Written: Radu Sion
Version: 0.16
Source: ServerTCPThread.java

Visit Smart Software 

See Also:
DatagramServerThread, SimpleQueue, ServerTCPProtocolThread

Fields inherited from class jclass.SleepingThread
DEFAULT_SLEEP
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ServerTCPThread(int port, SimpleQueue squeue, long sleep)
          Constructs a thread object.
 
Method Summary
 void run()
           
 
Methods inherited from class jclass.SleepingThread
getSleep, mysleep, pause, pause, setSleep
 
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

ServerTCPThread

public ServerTCPThread(int port,
                       SimpleQueue squeue,
                       long sleep)
Constructs a thread object.
Parameters:
port - Port on which to listen for connections
squeue - Queue where to insert new incomming connections
sleep - Internal sleep
Method Detail

run

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