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)
27 int typestr="portnumber"
31 para_server listens on this tcp port for incoming connections
32 from clients such as para_client. If the default port is
33 changed, the corresponding option of para_client must be used
34 to connect to para_server.
37 #############################
38 section "Configuration files"
39 #############################
43 include(config_file.m4)
48 "(default='~/.paraslash/server.users')"
50 string typestr="filename"
54 ##################################
55 section "virtual streaming system"
56 ##################################
61 "start playing on startup"
64 option "autoplay-delay" -
65 #~~~~~~~~~~~~~~~~~~~~~~~~
66 "time to wait before streaming"
72 If para_server is started with the autoplay option, this option
73 may be used to set up a delay before para_server streams its
74 first audio file. This is useful for example if para_server
75 and para_audiod are started during system startup. The delay
76 time should be choosen large enough so that para_audiod is
77 already up when para_server starts to stream. Of course, this
78 option depends on the autoplay option.
80 option "announce-time" A
81 #~~~~~~~~~~~~~~~~~~~~~~~
82 "grace time for clients"
88 Clients such as para_audiod connect to para_server and execute
89 the stat command to find out whether an audio stream is
90 currently available. This sets the delay betweeen announcing
91 the stream via the output of the stat command and sending
92 the first chunk of data.
95 #############################
96 section "audio file selector"
97 #############################
99 option "afs-database-dir" D
100 #~~~~~~~~~~~~~~~~~~~~~~~~~~
101 "location of the database"
102 string typestr="path"
105 Where para_server should look for the osl database of the audio
106 file selector. The default is '~/.paraslash/afs_database-0.4'.
109 option "afs-socket" s
110 #~~~~~~~~~~~~~~~~~~~~
111 "Command socket for afs"
112 string typestr="path"
113 default="/var/paraslash/afs_command_socket-0.4"
116 For each server command that is handled by the audio file
117 selector, the child process of para_server connects to the
118 audio file selector via a local socket. This option specifies
119 the location of that socket in the file system.
121 option "afs-initial-mode" i
122 #~~~~~~~~~~~~~~~~~~~~~~~~~~
124 "Mood or playlist to load on startup."
125 string typestr="<specifier>/<name>"
129 The argument of this option must be prefixed with either 'p/'
130 or 'm/' to indicate whether a playlist or a mood should be
132 --afs-initial-mode p/foo
133 loads the playlist named 'foo'.
136 #####################
137 section "http sender"
138 #####################
143 "tcp port for http streaming"
144 int typestr="portnumber"
148 The http sender of para_server listens on this port for
149 incoming connections. Clients are expected to send the usual
150 http request message such as 'GET / HTTP/'.
153 option "http-default-deny" -
154 #~~~~~~~~~~~~~~~~~~~~~~~~~~~
155 "make the http ACL a whitelist"
158 The default is to use blacklists instead, i.e. connections
159 to the http sender are allowed unless the connecting host
160 matches a pattern given by a http-access option. This allows
161 to use access control the other way round: Connections are
162 denied from hosts which are not explicitly allowed by one or
163 more http-access options.
166 option "http-access" -
167 #~~~~~~~~~~~~~~~~~~~~~
168 "add an entry to the http ACL"
169 string typestr="a.b.c.d/n"
173 Add given host/network to access control list (whitelist if
174 http-default-deny was given, blacklist otherwise) before
175 opening the tcp port. This option can be given multiple
176 times. Example: '192.168.0.0/24' whitelists/blacklists the
177 256 hosts 192.168.0.x
180 option "http-no-autostart" -
181 #~~~~~~~~~~~~~~~~~~~~~~~~~~~
182 "do not open tcp port on startup"
185 If this option is given, the http sender does not listen on
186 its tcp port. It may be instructed to open this port at a
187 later time by using the sender command.
190 option "http-max-clients" -
191 #~~~~~~~~~~~~~~~~~~~~~~~~~~
192 "maximal number of connections"
197 The http sender will refuse connections if already that number
198 of clients are currently connected. A non-positive value
199 (the default) allows an unlimited number of simultaneous
203 #####################
204 section "dccp sender"
205 #####################
210 "port for dccp streaming"
211 int typestr="portnumber"
215 See http-port for details.
218 option "dccp-default-deny" -
219 #~~~~~~~~~~~~~~~~~~~~~~~~~~~
220 "make the dccp ACL a whitelist"
223 See http-default-deny for details.
226 option "dccp-access" -
227 #~~~~~~~~~~~~~~~~~~~~~
228 "add an entry to the dccp ACL"
229 string typestr="a.b.c.d/n"
233 See http-access for details.
236 option "dccp-max-clients" -
237 #~~~~~~~~~~~~~~~~~~~~~~~~~~
238 "maximal number of connections"
243 See http-max-clients for details.
246 option "dccp-max-slice-size" -
247 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
248 "Upper bound for the FEC slice size"
253 If this value is non-positive (the default) the dccp sender
254 uses the maximum packet size (MPS) of the connection as the
255 slice size. The MPS is a network parameter and depends on
256 the path maximum transmission unit (path MTU) of an incoming
257 connection, i.e. on the largest packet size that can be
258 transmitted without causing fragmentation.
260 This option allows to use a value less than the MPS in order
261 to fine-tune application performance. Values greater than
262 the MPS of an incoming connection can not be set.
265 option "dccp-data-slices-per-group" -
266 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
267 "The number of non-redundant slices per FEC group"
272 This determines the number of slices in each FEC group that are
273 necessary to decode the group. The given number must be smaller
274 than the value of the dccp-slices-per-group option below.
276 Note that the duration of a FEC group is proportional to the
277 product dccp-max-slice-size * dccp-data-slices-per-group.
280 option "dccp-slices-per-group" -
281 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
282 "The total number of slices per FEC group"
287 This value must be larger than the value of the argument to
288 --dccp-data-slices-per-group. The difference of the two values is
289 the number of redundant slices, that is, the number of slices which
290 may be lost without causing interruptions in the audio stream.
292 Increase this value if you are on a lossy network.
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.