Class Network

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

public class Network
extends java.lang.Thread

Component for handling messages from clients. This is in a separate thread because we need to allow the election server manager and client requests to run in parallel. All this class does is open a server socket and accept incoming connections from clients. When it gets a new connection, it forks a Worker thread to handle it, then resumes waiting.


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Method Summary
 void run()
           
 
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
 

Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread