3.22. UDP Hosts

<udp_hosts> ‐ A container for UDP clients and servers

3.22.1. Attributes

NameTypeDefaults
nb_udp_local_serversINTEGER0
nb_udp_remote_clientsINTEGER0

3.22.2. Description

This element contains a set of udp_remote_client and udp_local_server elements that define UDP clients and servers. The values of the nb_udp_remote_clients and nb_udp_local_servers attributes define the number of UDP clients and servers contained in this element.

3.22.3. Expected content

This element must contain as many udp_local_server as the integer value of the nb_udp_local_servers attribute. This element must contain as many udp_remote_client as the integer value of the nb_udp_remote_clients attribute.

3.22.4. Example

The example below defines three UDP hosts, one server and two clients:

<udp_hosts nb_udp_local_servers="1" nb_udp_remote_clients="2">
  <udp_local_server id="" local_port="1979" UDP_message_acknowledgement="false"
     UDP_message_trace="false" input_message_stack_depth="100" 
     receive_format="OSC" receive_prefix="sound " 
     acknowledge_prefix="graphic " offset_UDP_message_received="0" 
     carbon_copy="superviser"/>
  <udp_remote_client id="spatializer" remote_ip="129.175.157.97" 
     remote_port="1979" UDP_message_acknowledgement="false" 
     first_UDP_message_number="0" maximal_UDP_message_delay="0.10000" 
     UDP_message_trace="true" output_message_stack_depth="500" 
     send_format="OSC" send_prefix="" send_ID="true" 
     listen_sound_messages="true"/>
  <udp_remote_client id="superviser" remote_ip="127.0.0.1" remote_port="2006" 
     UDP_message_acknowledgement="false" first_UDP_message_number="0" 
     maximal_UDP_message_delay="0.10000" UDP_message_trace="false" 
     output_message_stack_depth="500" send_format="OSC" send_prefix="sound " 
     send_ID="true" listen_sound_messages="false"/>
</udp_hosts>