|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.limegroup.gnutella.MulticastService
public final class MulticastService
This class handles Multicast messages. Currently, this only listens for messages from the Multicast group. Sending is done on the GUESS port, so that other nodes can reply appropriately to the individual request, instead of multicasting replies to the whole group.
UDPService,
MessageRouter| Method Summary | |
|---|---|
boolean |
isListening()
Returns whether or not the Multicast socket is listening for incoming messsages. |
void |
run()
Busy loop that accepts incoming messages sent over the multicast socket and dispatches them to their appropriate handlers. |
void |
send(Message msg)
Sends the Message using UDPService to the multicast address/port. |
void |
start()
Starts the Multicast service. |
String |
toString()
Overrides Object.toString to give more informative information about the class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public void start()
public void run()
run in interface Runnablepublic void send(Message msg)
msg - the Message to sendpublic boolean isListening()
public String toString()
toString in class Object
|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||