public void Publish(string channel, string s) { if (this.closed) { throw new SystemException(); } s = s + "\0"; byte[] b = System.Text.Encoding.GetEncoding("US-ASCII").GetBytes(s); Publish(channel, b, 0, b.Length); }
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); }