org.inria.myriads.snoozenode.tcpip
Class TCPWorkerThread

java.lang.Object
  extended by org.inria.myriads.snoozenode.tcpip.TCPWorkerThread
All Implemented Interfaces:
Runnable

public final class TCPWorkerThread
extends Object
implements Runnable

Worker thread.

Author:
Eugen Feller

Constructor Summary
TCPWorkerThread(Socket clientSocket, DataListener dataListener)
          TCP worker thread constructor.
 
Method Summary
 void run()
          The run() method.
protected  void terminate()
          Terminates the thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TCPWorkerThread

public TCPWorkerThread(Socket clientSocket,
                       DataListener dataListener)
TCP worker thread constructor.

Parameters:
clientSocket - The client socket
dataListener - The data listener
Method Detail

run

public void run()
The run() method.

Specified by:
run in interface Runnable

terminate

protected void terminate()
Terminates the thread.



Copyright © 2012. All Rights Reserved.