|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlcm.lcm.UDPMulticastProvider
public class UDPMulticastProvider
LCM provider for the udpm: URL. All messages are broadcast over a pre-arranged UDP multicast address. Subscription operations are a no-op, since all messages are always broadcast. This mechanism is very simple, low-latency, and efficient due to not having to transmit messages more than once when there are multiple subscribers. Since it uses UDP, it is lossy.
Constructor Summary | |
---|---|
UDPMulticastProvider(LCM lcm,
URLParser up)
|
Method Summary | |
---|---|
void |
close()
close() will be called when the application no longer requires the provider and wishes to free the resources used by the provider. |
void |
publish(java.lang.String channel,
byte[] data,
int offset,
int length)
Publish() will be called when an application sends a message, and could be called on an arbitrary thread. |
void |
subscribe(java.lang.String channel)
subscribe() will be called when a channel subscription has been made. |
void |
unsubscribe(java.lang.String channel)
unsubscribe() will be called when a channel subscription is cancelled. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UDPMulticastProvider(LCM lcm, URLParser up) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public void publish(java.lang.String channel, byte[] data, int offset, int length)
Provider
publish
in interface Provider
public void subscribe(java.lang.String channel)
Provider
subscribe
in interface Provider
public void unsubscribe(java.lang.String channel)
Provider
unsubscribe
in interface Provider
public void close()
Provider
close
in interface Provider
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |