C# Class LCM.LCM.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.
Inheritance: Provider
Afficher le fichier Open project: lcm-proj/lcm

Méthodes publiques

Méthode Description
Close ( ) : void

Call to close the provider

Publish ( string channel, byte data, int offset, int length ) : void

Publish a message

Subscribe ( string channel ) : void

Subscribe to a channel

UDPMulticastProvider ( LCM lcm, URLParser up ) : System

UDP multicast provider constructor

Unsubscribe ( String channel ) : void

Unsubscribe from a channel

Private Methods

Méthode Description
HandleFragment ( byte packetData, IPEndPoint from, LCMDataInputStream ins ) : void
HandlePacket ( byte packetData, IPEndPoint from ) : void
HandleShortMessage ( byte packetData, IPEndPoint from, LCMDataInputStream ins ) : void
PublishEx ( string channel, byte data, int offset, int length ) : void
ReaderThreadRun ( ) : void

Method Details

Close() public méthode

Call to close the provider
public Close ( ) : void
Résultat void

Publish() public méthode

Publish a message
public Publish ( string channel, byte data, int offset, int length ) : void
channel string channel name
data byte data byte array
offset int offset of the data to write
length int length of the data to write
Résultat void

Subscribe() public méthode

Subscribe to a channel
public Subscribe ( string channel ) : void
channel string channel name
Résultat void

UDPMulticastProvider() public méthode

UDP multicast provider constructor
public UDPMulticastProvider ( LCM lcm, URLParser up ) : System
lcm LCM LCM object
up URLParser URL parser object
Résultat System

Unsubscribe() public méthode

Unsubscribe from a channel
public Unsubscribe ( String channel ) : void
channel String channel name
Résultat void