|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--MicroTAPAS.ConnectionHandler
This class handles an incomming request of type RequestPars, by forwarding the request to the local MicroPNES instance and wait for the result of type RequestResult. When the result is received, it will be sent back through the same socket to the sender of the request.
| Field Summary | |
private java.net.Socket |
client
The socket to handle incomming requests from. |
private boolean |
DEBUG
Debug indicator. |
private boolean |
isPNESServer
Indicates wether this entity is used for regualr traffic or debug traffic. |
private java.lang.Object |
parent
Reference to the local MicroPNES/DebugServer instance. |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
ConnectionHandler(DebugServer pParent,
java.net.Socket pClient)
Constructor |
|
ConnectionHandler(MicroPNES pParent,
java.net.Socket pClient)
Constructor |
|
| Method Summary | |
private void |
handle()
Main method to handle the incomming request |
void |
run()
Implement the run() method of the Thread interface. |
private void |
sendDebug(DebugEvent de)
Method to send debug events to the debug server. |
| 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 |
| Field Detail |
private boolean DEBUG
private java.lang.Object parent
private boolean isPNESServer
private java.net.Socket client
| Constructor Detail |
public ConnectionHandler(MicroPNES pParent,
java.net.Socket pClient)
pParent - Reference to the local MicroPNES instancepClient - the socket that contains the incomming request
public ConnectionHandler(DebugServer pParent,
java.net.Socket pClient)
pParent - Reference to the local MicroPNES instancepClient - the socket that contains the incomming request| Method Detail |
public void run()
run in interface java.lang.Runnablerun in class java.lang.Thread
private void handle()
throws java.lang.Exception
java.lang.Exceptionprivate void sendDebug(DebugEvent de)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||