/// <summary> /// Send an individual OSC message. Internally takes the OscMessage object and /// serializes it into a byte[] suitable for sending to the PacketIO. /// </summary> /// <param name="oscMessage">The OSC Message to send.</param> public void Send(OscMessage oscMessage) { byte[] packet = new byte[1000]; int length = Osc.OscMessageToPacket(oscMessage, packet, 1000); OscPacketIO.SendPacket(packet, length); }
/// <summary> /// Sends a list of OSC Messages. Internally takes the OscMessage objects and /// serializes them into a byte[] suitable for sending to the PacketExchange. /// </summary> /// <param name="oms">The OSC Messages (as an ArrayList) to send.</param> public void Send(ArrayList oms) { byte[] packet = new byte[1000]; int length = Osc.OscMessagesToPacket(oms, packet, 1000); OscPacketIO.SendPacket(packet, length); }
public void Send(string message) { //byte[] packet = new byte[1000]; //int length = message.Length; byte[] packet = System.Text.Encoding.Default.GetBytes(message); OscPacketIO.SendPacket(packet, packet.Length); }