C# 클래스 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.
상속: Provider
파일 보기 프로젝트 열기: lcm-proj/lcm

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

Close() 공개 메소드

Call to close the provider
public Close ( ) : void
리턴 void

Publish() 공개 메소드

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
리턴 void

Subscribe() 공개 메소드

Subscribe to a channel
public Subscribe ( string channel ) : void
channel string channel name
리턴 void

UDPMulticastProvider() 공개 메소드

UDP multicast provider constructor
public UDPMulticastProvider ( LCM lcm, URLParser up ) : System
lcm LCM LCM object
up URLParser URL parser object
리턴 System

Unsubscribe() 공개 메소드

Unsubscribe from a channel
public Unsubscribe ( String channel ) : void
channel String channel name
리턴 void