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.
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 |
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.
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
Copyright © 2002, 2003 ingeneurbuero fuer innovative
informationstechnik, Dipl.-Ing. Joerg Beckmann, Dortmund,
Germany. All Rights Reserved.
See Copyright statement