|
Oracle | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
com.compoze.util.MulticastDiscoveryServer
public class MulticastDiscoveryServer
This class is a server that accepts multicast requests and responds with an IP address and port.
| 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 | |
|---|---|
MulticastDiscoveryServer(java.net.InetAddress multicastGroup,
int iListenPort,
java.net.InetAddress respondAddress,
int iRespondPort,
int iMagicNumber)
Constructor. |
|
MulticastDiscoveryServer(java.net.InetAddress multicastGroup,
int iListenPort,
int iRespondPort,
int iMagicNumber)
Constructor. |
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
Main. |
void |
run()
Thread run. |
void |
stopThread()
Stop the discovery listener 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 |
|---|
public MulticastDiscoveryServer(java.net.InetAddress multicastGroup,
int iListenPort,
int iRespondPort,
int iMagicNumber)
throws java.net.UnknownHostException,
java.io.IOException
multicastGroup - the multicast groupiListenPort - the multicast listen portiRespondPort - the port to respond withiMagicNumber - the magic number to listen for
java.io.IOException - if an i/o error occurred
java.net.UnknownHostException - if the local host could not be found
public MulticastDiscoveryServer(java.net.InetAddress multicastGroup,
int iListenPort,
java.net.InetAddress respondAddress,
int iRespondPort,
int iMagicNumber)
throws java.io.IOException
multicastGroup - the multicast groupiListenPort - the multicast listen portrespondAddress - the address to respond withiRespondPort - the port to respond withiMagicNumber - the magic number to listen for
java.io.IOException - if an i/o error occurred
java.net.UnknownHostException - if the local host could not be found| Method Detail |
|---|
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void stopThread()
public static void main(java.lang.String[] args)
args - command line arguments
|
Oracle | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||