lejos.nxt.comm
Class LCPResponder

java.lang.Object
  extended by java.lang.Thread
      extended by lejos.nxt.comm.LCPResponder
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
LCPBTResponder

public class LCPResponder
extends Thread

Support for LCP commands

Author:
Lawrie Griffiths/Andy Shaw

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
LCPResponder(NXTCommConnector connector)
          Create a Responder using the provided connector The connector is used to create the listening connection used to accept remote commands.
 
Method Summary
 void run()
          When an object implementing interface Runnable is used to create a thread, starting the thread causes the object's run method to be called in that separately executing thread.
 void shutdown()
          Terminate the responder.
 
Methods inherited from class java.lang.Thread
currentThread, getId, getName, getPriority, init_thread, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, set_priority, setDaemon, setName, setPriority, sleep, start, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LCPResponder

public LCPResponder(NXTCommConnector connector)
Create a Responder using the provided connector The connector is used to create the listening connection used to accept remote commands.

Parameters:
connector -
Method Detail

run

public void run()
Description copied from interface: Runnable
When an object implementing interface Runnable is used to create a thread, starting the thread causes the object's run method to be called in that separately executing thread.

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

shutdown

public void shutdown()
Terminate the responder. Abort any listening operation and close any open connections (this will also abort any current read requests).