MicroTAPAS
Class ConnectionHandler

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

public class ConnectionHandler
extends java.lang.Thread

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
 
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
 void run()
          Implement the run() method of the Thread interface.
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnectionHandler

public ConnectionHandler(MicroPNES pParent,
                         java.net.Socket pClient)
Constructor

Parameters:
pParent - Reference to the local MicroPNES instance
pClient - the socket that contains the incomming request

ConnectionHandler

public ConnectionHandler(DebugServer pParent,
                         java.net.Socket pClient)
Constructor

Parameters:
pParent - Reference to the local MicroPNES instance
pClient - the socket that contains the incomming request
Method Detail

run

public void run()
Implement the run() method of the Thread interface.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread