insa.projets.NetworkPackage
Class ListeningThread

java.lang.Object
  extended by java.lang.Thread
      extended by insa.projets.NetworkPackage.ListeningThread
All Implemented Interfaces:
java.lang.Runnable

public class ListeningThread
extends java.lang.Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  java.net.Socket clientSocket
           
private  int delay
           
private  java.io.DataInputStream inStream
           
private  boolean running
           
private  MonitorInterface telec
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ListeningThread(java.io.DataInputStream inStream, MonitorInterface telec, int delay, java.net.Socket clientSocket, boolean shortMessages)
           
 
Method Summary
 void run()
           
 void stopThread()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, 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

inStream

private java.io.DataInputStream inStream

delay

private int delay

clientSocket

private java.net.Socket clientSocket

telec

private MonitorInterface telec

running

private boolean running
Constructor Detail

ListeningThread

public ListeningThread(java.io.DataInputStream inStream,
                       MonitorInterface telec,
                       int delay,
                       java.net.Socket clientSocket,
                       boolean shortMessages)
Method Detail

stopThread

public void stopThread()

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread