|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--java.lang.Thread
|
+--projectinfosearch.DiscoveryServer
Waits for request packets and replies to them on a given multicast address and on given ports.
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
DiscoveryServer(java.net.InetAddress mcastAddr,
int basePort,
int serverPort)
Opens two MulticastSockets, one for receiving (basePort) and one for replying (serverPort) discovery requests. |
|
| Method Summary | |
void |
run()
Listens for discovery requests, receives and replies them. |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, 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 DiscoveryServer(java.net.InetAddress mcastAddr,
int basePort,
int serverPort)
throws java.io.IOException,
java.net.UnknownHostException
mcastAddr - is the multicast address to which the m-sockets must connect.basePort - is the port for the receiving socketserverPort - is the port for the replying socket| Method Detail |
public void run()
run in class java.lang.Thread
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||