/// <summary> /// Initializes a new instance of the <see cref="OscBundle"/> class. /// </summary> /// <param name="sourceEndPoint">The packet origin.</param> /// <param name="client">The destination of sent packets when using TransportType.Tcp.</param> public OscBundle(IPEndPoint sourceEndPoint, OscClient client = null) : this(sourceEndPoint, new OscTimeTag(), client) { }
/// <summary> /// Initializes a new instance of the <see cref="OscBundle"/> class. /// </summary> /// <param name="sourceEndPoint">The packet origin.</param> /// <param name="timeStamp">The creation time of the bundle.</param> /// <param name="client">The destination of sent packets when using TransportType.Tcp.</param> public OscBundle(IPEndPoint sourceEndPoint, OscTimeTag timeStamp, OscClient client = null) : base(sourceEndPoint, BundlePrefix, client) { TimeStamp = timeStamp; }
/// <summary> /// Transmit an Osc packet via TCP through the connected OscClient. /// </summary> /// <param name="packet">The packet to transmit.</param> /// <param name="client">The OscClient to communicate through.</param> /// <remarks>The OscClient must be connected for successful transmission.</remarks> public static void Send(OscPacket packet, OscClient client) { client.Send(packet); }