org.haphazard.XML
Class ConnectionHandler

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.haphazard.XML.ConnectionHandler
All Implemented Interfaces:
java.lang.Runnable

public class ConnectionHandler
extends java.lang.Thread

Starts a server socket and accepts sockets. Add those guys to the IOHandler.


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ConnectionHandler(IOHandler ioHandler, int port)
          Creates a new instance of ServerAccepter
 
Method Summary
 void end()
           
 void run()
           
 void sleep()
           
 void wake()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, 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

ConnectionHandler

public ConnectionHandler(IOHandler ioHandler,
                         int port)
Creates a new instance of ServerAccepter

Method Detail

wake

public void wake()

sleep

public void sleep()

end

public void end()

run

public void run()