|
Compoze Software, Inc. | |||||||||
| 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
This class is a server that accepts multicast requests and responds with an IP address and port.
| 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, 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 |
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()
public void stopThread()
public static void main(java.lang.String[] args)
args - command line arguments
|
Compoze Software, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||