iiitAccessServer 1.0

de.iiit.access.server.plugins.server
Class TcpServer.TcpHandler

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--de.iiit.access.server.plugins.server.TcpServer.TcpHandler
All Implemented Interfaces:
Runnable
Enclosing class:
TcpServer

public class TcpServer.TcpHandler
extends Thread

Implements the handler for each established connection.


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TcpServer.TcpHandler(Socket s)
          Creates a new instance of TcpHandler
 
Method Summary
 void run()
          This is the main loop of the server.
protected  void shutdown()
          This method is called by the AccessServer when the background threads should stop because of a shutdown of the AccessServer itself.
 
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

TcpServer.TcpHandler

public TcpServer.TcpHandler(Socket s)
Creates a new instance of TcpHandler

Parameters:
s - The socket to use for the communication with the client.
Method Detail

shutdown

protected void shutdown()
This method is called by the AccessServer when the background threads should stop because of a shutdown of the AccessServer itself.


run

public void run()
This is the main loop of the server. It receives and dispatches the commands and sends the results back to the client.

Specified by:
run in interface Runnable
Overrides:
run in class Thread

iiitAccessServer 1.0

Copyright © 2002, 2003 ingeneurbuero fuer innovative informationstechnik, Dipl.-Ing. Joerg Beckmann, Dortmund, Germany. All Rights Reserved.
See Copyright statement