1 args "--conf-parser --no-handle-version --no-handle-help"
3 purpose "Manage and stream audio files."
6 define(CURRENT_PROGRAM,para_server)
7 define(DEFAULT_CONFIG_FILE,~/.paraslash/server.conf)
10 #########################
11 section "General options"
12 #########################
16 include(log_timing.m4)
26 int typestr="portnumber"
30 para_server listens on this tcp port for incoming connections
31 from clients such as para_client. If the default port is
32 changed, the corresponding option of para_client must be used
33 to connect to para_server.
36 #############################
37 section "Configuration files"
38 #############################
42 include(config_file.m4)
47 "(default='~/.paraslash/server.users')"
49 string typestr="filename"
53 ##################################
54 section "virtual streaming system"
55 ##################################
60 "start playing on startup"
63 option "autoplay_delay" -
64 #~~~~~~~~~~~~~~~~~~~~~~~~
65 "time to wait before streaming"
71 If para_server is started with the autoplay option, this option
72 may be used to set up a delay before para_server streams its
73 first audio file. This is useful for example if para_server
74 and para_audiod are started during system startup. The delay
75 time should be choosen large enough so that para_audiod is
76 already up when para_server starts to stream. Of course, this
77 option depends on the autoplay option.
79 option "announce_time" A
80 #~~~~~~~~~~~~~~~~~~~~~~~
81 "grace time for clients"
87 Clients such as para_audiod connect to para_server and execute
88 the stat command to find out whether an audio stream is
89 currently available. This sets the delay betweeen announcing
90 the stream via the output of the stat command and sending
91 the first chunk of data.
94 #############################
95 section "audio file selector"
96 #############################
98 option "afs_database_dir" D
99 #~~~~~~~~~~~~~~~~~~~~~~~~~~
100 "location of the database"
101 string typestr="path"
104 Where para_server should look for the osl database of the audio
105 file selector. The default is '~/.paraslash/afs_database-0.4'.
108 option "afs_socket" s
109 #~~~~~~~~~~~~~~~~~~~~
110 "Command socket for afs"
111 string typestr="path"
112 default="/var/paraslash/afs_command_socket-0.4"
115 For each server command that is handled by the audio file
116 selector, the child process of para_server connects to the
117 audio file selector via a local socket. This option specifies
118 the location of that socket in the file system.
120 option "afs_initial_mode" i
121 #~~~~~~~~~~~~~~~~~~~~~~~~~~
123 "Mood or playlist to load on startup."
124 string typestr="<specifier>/<name>"
128 The argument of this option must be prefixed with either 'p/'
129 or 'm/' to indicate whether a playlist or a mood should be
131 --afs_initial_mode p/foo
132 loads the playlist named 'foo'.
135 #####################
136 section "http sender"
137 #####################
142 "tcp port for http streaming"
143 int typestr="portnumber"
147 The http sender of para_server listens on this port for
148 incoming connections. Clients are expected to send the usual
149 http request message such as 'GET / HTTP/'.
152 option "http_default_deny" -
153 #~~~~~~~~~~~~~~~~~~~~~~~~~~~
154 "make the http ACL a whitelist"
157 The default is to use blacklists instead, i.e. connections
158 to the http sender are allowed unless the connecting host
159 matches a pattern given by a http_access option. This allows
160 to use access control the other way round: Connections are
161 denied from hosts which are not explicitly allowed by one or
162 more http_access options.
165 option "http_access" -
166 #~~~~~~~~~~~~~~~~~~~~~
167 "add an entry to the http ACL"
168 string typestr="a.b.c.d/n"
172 Add given host/network to access control list (whitelist if
173 http_default_deny was given, blacklist otherwise) before
174 opening the tcp port. This option can be given multiple
175 times. Example: '192.168.0.0/24' whitelists/blacklists the
176 256 hosts 192.168.0.x
179 option "http_no_autostart" -
180 #~~~~~~~~~~~~~~~~~~~~~~~~~~~
181 "do not open tcp port on startup"
184 If this option is given, the http sender does not listen on
185 its tcp port. It may be instructed to open this port at a
186 later time by using the sender command.
189 option "http_max_clients" -
190 #~~~~~~~~~~~~~~~~~~~~~~~~~~
191 "maximal number of connections"
196 The http sender will refuse connections if already that number
197 of clients are currently connected. A non-positive value
198 (the default) allows an unlimited number of simultaneous
202 #####################
203 section "dccp sender"
204 #####################
209 "port for dccp streaming"
210 int typestr="portnumber"
214 See http_port for details.
217 option "dccp_default_deny" -
218 #~~~~~~~~~~~~~~~~~~~~~~~~~~~
219 "make the dccp ACL a whitelist"
222 See http_default_deny for details.
225 option "dccp_access" -
226 #~~~~~~~~~~~~~~~~~~~~~
227 "add an entry to the dccp ACL"
228 string typestr="a.b.c.d/n"
232 See http_access for details.
235 option "dccp_max_clients" -
236 #~~~~~~~~~~~~~~~~~~~~~~~~~~
237 "maximal number of connections"
242 See http_max_clients for details.
245 option "dccp_max_slice_size" -
246 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
247 "Upper bound for the FEC slice size"
252 If this value is non-positive (the default) the dccp sender
253 uses the maximum packet size (MPS) of the connection as the
254 slice size. The MPS is a network parameter and depends on
255 the path maximum transmission unit (path MTU) of an incoming
256 connection, i.e. on the largest packet size that can be
257 transmitted without causing fragmentation.
259 This option allows to use a value less than the MPS in order
260 to fine-tune application performance. Values greater than
261 the MPS of an incoming connection can not be set.
264 option "dccp_data_slices_per_group" -
265 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
266 "The number of non-redundant slices per FEC group"
271 This determines the number of slices in each FEC group that are
272 necessary to decode the group. The given number must be smaller
273 than the value of the dccp_slices_per_group option below.
275 Note that the duration of a FEC group is proportional to the
276 product dccp_max_slice_size * dccp_data_slices_per_group.
279 option "dccp_slices_per_group" -
280 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
281 "The total number of slices per FEC group"
286 This value must be larger than the value given for above
287 dccp_data_slices_per_group above. The difference being the
288 number of redundant slices per group, i.e. the number of
289 data packets that may be lost without causing interruptions
290 of the resulting audio stream.
292 Increase this value if for lossy networks.
299 option "udp_target" -
300 #~~~~~~~~~~~~~~~~~~~~
301 "add udp target with optional port"
302 string typestr="host[:port]"
306 Add given host/port to the list of targets. The 'host' argument
307 can be either an IPv4/v6 address or hostname (RFC 3986 syntax).
308 The 'port' argument is an optional port number. If the 'port'
309 part is absent, the 'udp_default_port' value is used.
311 The following examples are possible targets:
312 '10.10.1.2:8000' (host:port); '10.10.1.2' (with default port);
313 '224.0.1.38:1500' (IPv4 multicast); 'localhost:8001' (hostname
314 with port); '[::1]:8001' (IPv6 localhost); '[badc0de::1]' (IPv6
315 host with default port); '[FF00::beef]:1500' (IPv6 multicast).
317 This option can be given multiple times, for multiple targets.
320 option "udp_no_autostart" -
321 #~~~~~~~~~~~~~~~~~~~~~~~~~~
322 "do not start sending"
325 If this option is given, udp streaming may be activated at
326 a later time by using the sender command.
329 option "udp_default_port" -
330 #~~~~~~~~~~~~~~~~~~~~~~~~~~
331 "udp port to send to"
336 option "udp_mcast_iface" -
337 #~~~~~~~~~~~~~~~~~~~~~~~~~~
338 "outgoing udp multicast interface"
342 option "udp_header_interval" H
343 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
344 "duration for sending header"
349 As the udp sender has no idea about connected clients it
350 sends the audio file header periodically if necessary. This
351 option specifies the duration between subsequent headers are
352 sent. Smaller values decrease the average time clients have
353 to wait before starting playback, larger values decrease
356 Note that this affects only ogg/* and wma streams. Other
357 audio formats, including mp3, don't need an audio file header.
362 "set time to live value"
367 This option applies exclusively to multicast UDPv4/v6 streaming.
369 For the sending UDPv4 socket it sets the multicast Time-To-Live
370 value to \"num\". Traditional TTL scope values are: 0=host,
371 1=network, 32=same site, 64=same region, 128=same continent,
372 255=unrestricted. Please note however that this scoping is not
373 a good solution: RFC 2365 e.g. presents a better alternative.
375 When using UDPv6 multicasting, the option sets the number of
376 multicast hops (as described in RFC 3493); a value of -1
377 allows the kernel to auto-select the hop value.