Beispiel #1
0
 /// <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)
 {
 }
Beispiel #2
0
 /// <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;
 }
Beispiel #3
0
 /// <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);
 }