org.jlab.coda.cMsg.cMsgDomain.server
Class cMsgBroadcastListeningThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.jlab.coda.cMsg.cMsgDomain.server.cMsgBroadcastListeningThread
All Implemented Interfaces:
java.lang.Runnable

public class cMsgBroadcastListeningThread
extends java.lang.Thread

This class implements a thread to listen to cMsg clients broadcasting in order to find and then fully connect to a cMsg server.

Version:
1.0
Author:
Carl Timmer

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
cMsgBroadcastListeningThread(int port, java.net.DatagramSocket socket, java.lang.String password, int debug)
          Constructor.
 
Method Summary
 void run()
          This method is executed as a thread.
 
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
 

Constructor Detail

cMsgBroadcastListeningThread

public cMsgBroadcastListeningThread(int port,
                                    java.net.DatagramSocket socket,
                                    java.lang.String password,
                                    int debug)
Constructor.

Parameters:
port - cMsg name server's main tcp listening port
socket - udp socket on which to receive broadcasts from cMsg clients
password - cMsg server's client password
debug - cMsg server's debug level
Method Detail

run

public void run()
This method is executed as a thread.

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