org.jlab.coda.et
Class ListeningThread

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.jlab.coda.et.ListeningThread
All Implemented Interfaces:
java.lang.Runnable

class ListeningThread
extends java.lang.Thread

This class implements a thread which listens on a particular address for a udp packet. It sends back a udp packet with the tcp server port, host name, and other information necessary to establish a tcp connection between the tcp server thread of the ET system and the user.


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
(package private) ListeningThread(SystemCreate _sys, java.net.InetAddress _addr)
          Creates a new ListeningThread object.
(package private) ListeningThread(SystemCreate _sys, java.net.InetAddress _addr, boolean _isIpAddr)
          Creates a new ListeningThread object.
 
Method Summary
 void run()
          Starts a single thread to listen for udp packets at a specific address and respond with ET system information.
 
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
 

Constructor Detail

ListeningThread

ListeningThread(SystemCreate _sys,
                java.net.InetAddress _addr)
Creates a new ListeningThread object. Assumes address is a host's address.

Parameters:
_sys - ET system object

ListeningThread

ListeningThread(SystemCreate _sys,
                java.net.InetAddress _addr,
                boolean _isIpAddr)
Creates a new ListeningThread object.

Parameters:
_sys - ET system object
_isIpAddr - flag telling if the address is a host's address (true) or a broad/multicasting address (false)
Method Detail

run

public void run()
Starts a single thread to listen for udp packets at a specific address and respond with ET system information.