multiple
details="
Add given host/port to the list of targets. This option
- can be given multiple times. Example: '224.0.1.38:1500'
+ can be given multiple times. Example: '224.0.1.38:1500'
instructs the udp sender to send to udp port 1500 on host
224.0.1.38 (unassigned ip in the Local Network Control Block
224.0.0/24). This is useful for multicast streaming.
that this affects only ogg vorbis streams as this is the only
audio format that needs an audio file header.
"
+
+option "udp_ttl" t
+#~~~~~~~~~~~~~~~~~
+"set time to live value"
+int typestr="num"
+default="10"
+optional
+details="
+ This option instructs the udp sender to set the time to live to
+ \"num\" for the sending udp socket. Only useful for multicast
+ udp streaming.
+"
if (ut->fd >= 0) /* nothing to do */
return 0;
PARA_NOTICE_LOG("sending to udp %s:%d\n", TARGET_ADDR(ut), ut->port);
- /* TODO: Make ttl configurable. */
- ret = create_udp_send_socket(TARGET_ADDR(ut), ut->port, 10);
+ ret = create_udp_send_socket(TARGET_ADDR(ut), ut->port,
+ conf.udp_ttl_arg);
if (ret < 0)
return ret;
ut->fd = ret;