LCM.LCM.LCM.Publish C# (CSharp) Method

Publish() public method

Publish raw data on a channel, bypassing the LCM type specification. If more than one URL was specified when the LCM object was created, the message will be sent on each.
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
return void
		public void Publish(string channel, byte[] data, int offset, int length)
		{
			lock (this)
			{
                if (this.closed)
                {
                    throw new SystemException();
                }

                foreach (Provider p in providers)
                {
                    p.Publish(channel, data, offset, length);
                }
			}
		}
		

Same methods

LCM::Publish ( string channel, LCMEncodable e ) : void
LCM::Publish ( string channel, string s ) : void

Usage Example

Example #1
0
        public void discover(string input)
        {
            _ea.GetEvent <StatusUpdateEvent>().Publish("Discovering...");
            discovery_request_t discoveryRequest = new discovery_request_t();

            _lcm.Publish(Channels.discovery_req_channel, discoveryRequest);
        }
All Usage Examples Of LCM.LCM.LCM::Publish