|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.limegroup.gnutella.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 | |
static MulticastService |
instance()
Instance accessor. |
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. |
java.lang.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 static MulticastService instance()
public void start()
public void run()
run
in interface java.lang.Runnable
public void send(Message msg)
msg
- the Message to sendpublic boolean isListening()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |