chiark / gitweb /
Doxygen file headers for most files
[disorder] / doc / disorder_protocol.5.in
CommitLineData
460b9539 1.\"
964e027d 2.\" Copyright (C) 2004-2008 Richard Kettlewell
460b9539 3.\"
e7eb3a27 4.\" This program is free software: you can redistribute it and/or modify
460b9539 5.\" it under the terms of the GNU General Public License as published by
e7eb3a27 6.\" the Free Software Foundation, either version 3 of the License, or
460b9539 7.\" (at your option) any later version.
e7eb3a27
RK
8.\"
9.\" This program is distributed in the hope that it will be useful,
10.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
11.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12.\" GNU General Public License for more details.
13.\"
460b9539 14.\" You should have received a copy of the GNU General Public License
e7eb3a27 15.\" along with this program. If not, see <http://www.gnu.org/licenses/>.
460b9539 16.\"
17.TH disorder_protocol 5
18.SH NAME
19disorder_protocol \- DisOrder communication protocol
20.SH DESCRIPTION
21The DisOrder client and server communicate via the protocol described
22in this man page.
23.PP
c0c23a60
RK
24The protocol is liable to change without notice.
25You are recommended to check the implementation before believing this document.
460b9539 26.SH "GENERAL SYNTAX"
c0c23a60
RK
27Everything is encoded using UTF-8.
28See
f9635e06
RK
29.B "CHARACTER ENCODING"
30below for more detail on character encoding issues.
460b9539 31.PP
f9635e06
RK
32Commands and responses consist of a line perhaps followed (depending on the
33command or response) by a body.
460b9539 34.PP
35The line syntax is the same as described in \fBdisorder_config\fR(5) except
36that comments are prohibited.
37.PP
38Bodies borrow their syntax from RFC821; they consist of zero or more ordinary
39lines, with any initial full stop doubled up, and are terminated by a line
40consisting of a full stop and a line feed.
41.SH COMMANDS
42Commands always have a command name as the first field of the line; responses
c0c23a60
RK
43always have a 3-digit response code as the first field.
44See below for more details about this field.
460b9539 45.PP
46All commands require the connection to have been already authenticated unless
c0c23a60
RK
47stated otherwise.
48If not stated otherwise, the \fBread\fR right is sufficient to execute
49the command.
460b9539 50.PP
51Neither commands nor responses have a body unless stated otherwise.
52.TP
0f55e905 53.B adduser \fIUSERNAME PASSWORD \fR[\fIRIGHTS\fR]
c0c23a60
RK
54Create a new user with the given username and password.
55The new user's rights list can be specified; if it is not
56then the \fBdefault_rights\fR setting applies instead.
57Requires the \fBadmin\fR right, and only works on local
0f55e905 58connections.
eb5dc014 59.TP
460b9539 60.B allfiles \fIDIRECTORY\fR [\fIREGEXP\fR]
5818980a 61List all the files and directories in \fIDIRECTORY\fR in a response body.
460b9539 62If \fIREGEXP\fR is present only matching files and directories are returned.
63.TP
ba39faf6 64.B confirm \fICONFIRMATION
c0c23a60
RK
65Confirm user registration.
66\fICONFIRMATION\fR is as returned from \fBregister\fR below.
67This command can be used without logging in.
ba39faf6 68.TP
eb5dc014 69.B cookie \fICOOKIE
0d350ff0 70Log a user back in using a cookie created with \fBmake\-cookie\fR.
c0c23a60 71The response contains the username.
eb5dc014
RK
72.TP
73.B deluser \fIUSERNAME
c0c23a60
RK
74Delete the named user.
75Requires the \fBadmin\fR right, and only works on local connections.
460b9539 76.TP
77.B dirs \fIDIRECTORY\fR [\fIREGEXP\fR]
5818980a 78List all the directories in \fIDIRECTORY\fR in a response body.
460b9539 79If \fIREGEXP\fR is present only matching directories are returned.
80.TP
81.B disable \fR[\fBnow\fR]
c0c23a60
RK
82Disable further playing.
83If the optional \fBnow\fR argument is present then the current track
84is stopped.
85Requires the \fBglobal prefs\fR right.
eb5dc014
RK
86.TP
87.B edituser \fIUSERNAME PROPERTY VALUE
c0c23a60
RK
88Set a user property.
89With the \fBadmin\fR right any username and property may be specified.
90Otherwise the \fBuserinfo\fR right is required and only the
eb5dc014 91\fBemail\fR and \fBpassword\fR properties may be set.
0517868c
RK
92.IP
93User properties are syntax-checked before setting. For instance \fBemail\fR
94must contain an "@" sign or you will get an error. (Setting an empty value for
95\fBemail\fR is allowed and removes the property.)
460b9539 96.TP
97.B enable
c0c23a60
RK
98Re-enable further playing, and is the opposite of \fBdisable\fR.
99Requires the \fBglobal prefs\fR right.
460b9539 100.TP
101.B enabled
c0c23a60
RK
102Report whether playing is enabled.
103The second field of the response line will be \fByes\fR or \fBno\fR.
460b9539 104.TP
105.B exists \fITRACK\fR
c0c23a60
RK
106Report whether the named track exists.
107The second field of the response line will be \fByes\fR or \fBno\fR.
460b9539 108.TP
109.B files \fIDIRECTORY\fR [\fIREGEXP\fR]
5818980a 110List all the files in \fIDIRECTORY\fR in a response body.
460b9539 111If \fIREGEXP\fR is present only matching files are returned.
112.TP
113.B get \fITRACK\fR \fIPREF\fR
c0c23a60
RK
114Getsa preference value.
115On success the second field of the response line will have the value.
fb1bc1f5
RK
116.IP
117If the track or preference do not exist then the response code is 555.
460b9539 118.TP
0d350ff0 119.B get\-global \fIKEY\fR
460b9539 120Get a global preference.
fb1bc1f5
RK
121.IP
122If the preference does not exist then the response code is 555.
460b9539 123.TP
124.B length \fITRACK\fR
c0c23a60
RK
125Get the length of the track in seconds.
126On success the second field of the response line will have the value.
460b9539 127.TP
128.B log
c0c23a60
RK
129Send event log messages in a response body.
130The command will never terminate.
131Any further data sent to the server will be discarded (explicitly;
132i.e. it will not accumulate in a buffer somewhere).
460b9539 133.IP
134See \fBEVENT LOG\fR below for more details.
135.TP
0d350ff0 136.B make\-cookie
eb5dc014
RK
137Returns an opaque string that can be used by the \fBcookie\fR command to log
138this user back in on another connection (until the cookie expires).
139.TP
460b9539 140.B move \fITRACK\fR \fIDELTA\fR
c0c23a60
RK
141Move a track in the queue.
142The track may be identified by ID (preferred) or name (which might cause
143confusion if it's there twice).
144\fIDELTA\fR should be an negative or positive integer and indicates how
145many steps towards the head of the queue the track should be moved.
eb5dc014
RK
146.IP
147Requires one of the \fBmove mine\fR, \fBmove random\fR or \fBmove any\fR rights
148depending on how the track came to be added to the queue.
460b9539 149.TP
150.B moveafter \fITARGET\fR \fIID\fR ...
c0c23a60
RK
151Move all the tracks in the \fIID\fR list after ID \fITARGET\fR.
152If \fITARGET\fR is the empty string then the listed tracks are put
153at the head of the queue.
154If \fITARGET\fR is listed in the ID list then the tracks are moved
460b9539 155to just after the first non-listed track before it, or to the head if there is
156no such track.
eb5dc014
RK
157.IP
158Requires one of the \fBmove mine\fR, \fBmove random\fR or \fBmove any\fR rights
159depending on how the tracks came to be added to the queue.
460b9539 160.TP
2a10b70b 161.B new \fR[\fIMAX\fR]
c0c23a60
RK
162Send the most recently added \fIMAX\fR tracks in a response body.
163If the argument is ommitted, the \fBnew_max\fR most recent tracks are
164listed (see \fBdisorder_config\fR(5)).
2a10b70b 165.TP
7858930d 166.B nop
c0c23a60
RK
167Do nothing.
168Used by
7858930d 169.BR disobedience (1)
c0c23a60
RK
170as a keepalive measure.
171This command does not require authentication.
7858930d 172.TP
460b9539 173.B part \fITRACK\fR \fICONTEXT\fI \fIPART\fR
c0c23a60
RK
174Get a track name part.
175Returns an empty string if a name part cannot be constructed.
460b9539 176.IP
177.I CONTEXT
178is one of
179.B sort
180or
181.B display
182and
183.I PART
184is usually one of
185.BR artist ,
186.B album
187or
188.BR title .
189.TP
190.B pause
c0c23a60
RK
191Pause the current track.
192Requires the \fBpause\fR right.
460b9539 193.TP
194.B play \fITRACK\fR
c0c23a60
RK
195Add a track to the queue.
196The response contains the queue ID of the track.
eb5dc014 197Requires the \fBplay\fR right.
460b9539 198.TP
199.B playing
5818980a 200Report what track is playing.
460b9539 201.IP
202If the response is \fB252\fR then the rest of the response line consists of
203track information (see below).
204.IP
205If the response is \fB259\fR then nothing is playing.
206.TP
207.B prefs \fBTRACK\fR
5818980a 208Send back the preferences for \fITRACK\fR in a response body.
460b9539 209Each line of the response has the usual line syntax, the first field being the
210name of the pref and the second the value.
211.TP
212.B queue
5818980a 213Send back the current queue in a response body, one track to a line, the track
c0c23a60
RK
214at the head of the queue (i.e. next to be be played) first.
215See below for the track information syntax.
460b9539 216.TP
0d350ff0 217.B random\-disable
c0c23a60
RK
218Disable random play (but don't stop the current track).
219Requires the \fBglobal prefs\fR right.
460b9539 220.TP
0d350ff0 221.B random\-enable
c0c23a60
RK
222Enable random play.
223Requires the \fBglobal prefs\fR right.
460b9539 224.TP
0d350ff0 225.B random\-enabled
c0c23a60
RK
226Report whether random play is enabled.
227The second field of the response line will be \fByes\fR or \fBno\fR.
460b9539 228.TP
229.B recent
5818980a 230Send back the current recently-played list in a response body, one track to a
c0c23a60
RK
231line, the track most recently played last.
232See below for the track information syntax.
460b9539 233.TP
234.B reconfigure
c0c23a60
RK
235Request that DisOrder reconfigure itself.
236Requires the \fBadmin\fR right.
460b9539 237.TP
90ad6c6e 238.B register \fIUSERNAME PASSWORD EMAIL
c0c23a60
RK
239Register a new user.
240Requires the \fBregister\fR right.
241The result contains a confirmation string; the user will be be able
242to log in until this has been presented back to the server via the
243\fBconfirm\fR command.
ba39faf6 244.TP
90ad6c6e
RK
245.B reminder \fIUSERNAME\fR
246Send a password reminder to user \fIUSERNAME\fR.
c0c23a60
RK
247If the user has no valid email address, or no password, or a
248reminder has been sent too recently, then no reminder will be sent.
6207d2f3 249.TP
460b9539 250.B remove \fIID\fR
c0c23a60
RK
251Remove the track identified by \fIID\fR.
252Requires one of the \fBremove mine\fR, \fBremove random\fR or
253\fBremove any\fR rights depending on how the
eb5dc014 254track came to be added to the queue.
460b9539 255.TP
dd9af5cb 256.B rescan \fR[\fBwait\fR] \fR[\fBfresh\fR]
c0c23a60
RK
257Rescan all roots for new or obsolete tracks.
258Requires the \fBrescan\fR right.
dd9af5cb
RK
259.IP
260If the \fBwait\fR flag is present then the response is delayed until the rescan
261completes.
262Otherwise the response arrives immediately.
263This is primarily intended for testing.
264.IP
265If the \fBfresh\fR flag is present a rescan is already underway then a second
266rescan will be started when it completes.
267The default behavior is to piggyback on the existing rescan.
268.IP
269NB that \fBfresh\fR is currently disabled in the server source, so using this
270flag will just provoke an error.
460b9539 271.TP
272.B resolve \fITRACK\fR
273Resolve a track name, i.e. if this is an alias then return the real track name.
274.TP
275.B resume
c0c23a60
RK
276Resume the current track after a \fBpause\fR command.
277Requires the \fBpause\fR right.
eb5dc014
RK
278.TP
279.B revoke \fBcookie\fR
0d350ff0 280Revoke a cookie previously created with \fBmake\-cookie\fR.
c0c23a60 281It will not be possible to use this cookie in the future.
460b9539 282.TP
0d350ff0 283.B rtp\-address
5818980a 284Report the RTP broadcast (or multicast) address, in the form \fIADDRESS
c0c23a60
RK
285PORT\fR.
286This command does not require authentication.
ca831831 287.TP
460b9539 288.B scratch \fR[\fIID\fR]
289Remove the track identified by \fIID\fR, or the currently playing track if no
c0c23a60
RK
290\fIID\fR is specified.
291Requires one of the \fBscratch mine\fR, \fBscratch random\fR or
292\fBscratch any\fR rights depending on how the track came to be
eb5dc014 293added to the queue.
460b9539 294.TP
2b33c4cf
RK
295.B schedule-add \fIWHEN\fR \fIPRIORITY\fR \fIACTION\fR ...
296Schedule an event for the future.
297.IP
298.I WHEN
299is the time when it should happen, as \fBtime_t\fR value.
300It must refer to a time in the future.
301.IP
302.I PRIORITY
303is the event priority.
304This can be \fBnormal\fR, in which case the event will be run at startup if its
305time has past, or \fBjunk\fR in which case it will be discarded if it is found
306to be in the past at startup.
307The meaning of other values is not defined.
308.IP
309.I ACTION
310is the action to perform.
311The choice of action determines the meaning of the remaining arguments.
312Possible actions are:
313.RS
314.TP
315.B play
316Play a track.
317The next argument is the track name.
318Requires the \fBplay\fR right.
319.TP
320.B set-global
321Set a global preference.
322The next argument is the preference name and the final argument is the value to
323set it to (omit it to unset it).
324Requires the \fBglobal prefs\fR right.
325.RE
326.IP
327You need the right at the point you create the event.
328It is not possible to create scheduled events in expectation of a future change
329in rights.
330.TP
331.B schedule-del \fIEVENT\fR
332Deletes a scheduled event.
333Users can always delete their own scheduled events; with the \fBadmin\fR
334right you can delete any event.
335.TP
336.B schedule-get \fIEVENT\fR
337Sends the details of scheduled event \fIEVENT\fR in a response body.
338Each line is a pair of strings quoted in the usual way, the first being the key
339ane the second the value.
340No particular order is used.
341.IP
342Scheduled events are considered public information.
343Right \fBread\fR is sufficient to see details of all events.
344.TP
345.B schedule-list
346Sends the event IDs of all scheduled events in a response body, in no
347particular order.
348Use \fBschedule-get\fR to get the details of each event.
349.TP
460b9539 350.B search \fITERMS\fR
c0c23a60
RK
351Search for tracks matching the search terms.
352The results are put in a response body, one to a line.
460b9539 353.IP
354The search string is split in the usual way, with quoting supported, into a
c0c23a60
RK
355list of terms.
356Only tracks matching all terms are included in the results.
460b9539 357.IP
358Any terms of the form \fBtag:\fITAG\fR limits the search to tracks with that
359tag.
360.IP
361All other terms are interpreted as individual words which must be present in
362the track name.
363.IP
364Spaces in terms don't currently make sense, but may one day be interpreted to
365allow searching for phrases.
366.TP
367.B \fBset\fR \fITRACK\fR \fIPREF\fR \fIVALUE\fR
c0c23a60
RK
368Set a preference.
369Requires the \fBprefs\fR right.
460b9539 370.TP
0d350ff0 371.B set\-global \fIKEY\fR \fIVALUE\fR
c0c23a60
RK
372Set a global preference.
373Requires the \fBglobal prefs\fR right.
460b9539 374.TP
375.B stats
376Send server statistics in plain text in a response body.
377.TP
378.B \fBtags\fR
379Send the list of currently known tags in a response body.
380.TP
381.B \fBunset\fR \fITRACK\fR \fIPREF\fR
c0c23a60
RK
382Unset a preference.
383Requires the \fBprefs\fR right.
460b9539 384.TP
0d350ff0 385.B \fBunset\-global\fR \fIKEY\fR
c0c23a60
RK
386Unset a global preference.
387Requires the \fBglobal prefs\fR right.
460b9539 388.TP
90ad6c6e
RK
389.B user \fIUSERNAME\fR \fIRESPONSE\fR
390Authenticate as user \fIUSERNAME\fR.
c0c23a60 391See
5e3f9e08
RK
392.B AUTHENTICATION
393below.
460b9539 394.TP
90ad6c6e 395.B userinfo \fIUSERNAME PROPERTY
3e3566ad
RK
396Get a user property.
397.TP
eb5dc014 398.B users
5818980a 399Send the list of currently known users in a response body.
eb5dc014 400.TP
460b9539 401.B version
402Send back a response with the server version as the second field.
403.TP
404.B volume \fR[\fILEFT\fR [\fIRIGHT\fR]]
405Get or set the volume.
406.IP
407With zero parameters just gets the volume and reports the left and right sides
408as the 2nd and 3rd fields of the response.
409.IP
c0c23a60
RK
410With one parameter sets both sides to the same value.
411With two parameters sets each side independently.
412Setting the volume requires the \fBvolume\fR right.
460b9539 413.SH RESPONSES
c0c23a60
RK
414Responses are three-digit codes.
415The first digit distinguishes errors from succesful responses:
460b9539 416.TP
417.B 2
418Operation succeeded.
419.TP
420.B 5
421Operation failed.
422.PP
423The second digit breaks down the origin of the response:
424.TP
425.B 0
c0c23a60
RK
426Generic responses not specific to the handling of the command.
427Mostly this is parse errors.
460b9539 428.TP
b4a80f69 429.B 1
43051x errors indicate that the user had insufficient rights for the command.
431.TP
460b9539 432.B 3
433Authentication responses.
434.TP
435.B 5
436Responses specific to the handling of the command.
437.PP
438The third digit provides extra information about the response:
439.TP
440.B 0
441Text part is just commentary.
442.TP
443.B 1
444Text part is a constant result e.g. \fBversion\fR.
445.TP
446.B 2
447Text part is a potentially variable result.
448.TP
449.B 3
450Text part is just commentary; a dot-stuffed body follows.
451.TP
452.B 4
c0c23a60
RK
453Text part is just commentary; an indefinite dot-stuffed body follows.
454(Used for \fBlog\fR.)
460b9539 455.TP
fb1bc1f5 456.B 5
c0c23a60
RK
457Used with "normal" errors, for instance a preference not being found.
458The text part is commentary.
fb1bc1f5 459.TP
460b9539 460.B 9
461The text part is just commentary (but would normally be a response for this
462command) e.g. \fBplaying\fR.
7b32e917
RK
463.PP
464Result strings (not bodies) intended for machine parsing (i.e. xx1 and xx2
465responses) are quoted.
460b9539 466.SH AUTHENTICATION
5e3f9e08 467When a connection is made the server sends a \fB231\fR response before any
c0c23a60
RK
468command is received.
469This contains a protocol generation, an algorithm name and a
470challenge encoded in hex, all separated by whitespace.
7b32e917
RK
471.PP
472The current protocol generation is \fB2\fR.
5e3f9e08 473.PP
b3141726 474The possible algorithms are (currently) \fBsha1\fR, \fBsha256\fR, \fBsha384\fR
c0c23a60
RK
475and \fBsha512\fR.
476\fBSHA1\fR etc work as synonyms.
460b9539 477.PP
5e3f9e08
RK
478The \fBuser\fR response consists of the selected hash of the user's password
479concatenated with the challenge, encoded in hex.
460b9539 480.SH "TRACK INFORMATION"
481Track information is encoded in a line (i.e. using the usual line syntax) as
c0c23a60
RK
482pairs of fields.
483The first is a name, the second a value.
484The names have the following meanings:
460b9539 485.TP 12
486.B expected
487The time the track is expected to be played at.
488.TP
489.B id
490A string uniquely identifying this queue entry.
491.TP
492.B played
493The time the track was played at.
494.TP
495.B scratched
496The user that scratched the track.
497.TP
498.B state
c0c23a60
RK
499The current track state.
500Valid states are:
460b9539 501.RS
502.TP 12
503.B failed
504The player failed (exited with nonzero status but wasn't scratched).
505.TP
506.B isscratch
507The track is actually a scratch.
508.TP
509.B no_player
510No player could be found for the track.
511.TP
512.B ok
513The track was played without any problems.
514.TP
515.B scratched
516The track was scratched.
517.TP
518.B started
519The track is currently playing.
520.TP
521.B unplayed
522In the queue, hasn't been played yet.
523.TP
524.B quitting
525The track was terminated because the server is shutting down.
526.RE
527.TP
528.B submitter
529The user that submitted the track.
530.TP
531.B track
532The filename of the track.
533.TP
534.B when
535The time the track was added to the queue.
536.TP
537.B wstat
538The wait status of the player in decimal.
539.SH NOTES
540Times are decimal integers using the server's \fBtime_t\fR.
541.PP
542For file listings, the regexp applies to the basename of the returned file, not
c0c23a60
RK
543the whole filename, and letter case is ignored.
544\fBpcrepattern\fR(3) describes the regexp syntax.
460b9539 545.PP
546Filenames are in UTF-8 even if the collection they come from uses some other
547encoding - if you want to access the real file (in such cases as the filenames
548actually correspond to a real file) you'll have to convert to whatever the
549right encoding is.
550.SH "EVENT LOG"
551The event log consists of lines starting with a hexadecimal timestamp and a
c0c23a60
RK
552keyword followed by (optionally) parameters.
553The parameters are quoted in the usual DisOrder way.
554Currently the following keywords are used:
460b9539 555.TP
556.B completed \fITRACK\fR
557Completed playing \fITRACK\fR
558.TP
559.B failed \fITRACK\fR \fIERROR\fR
560Completed playing \fITRACK\fR with an error status
561.TP
90ad6c6e
RK
562.B moved \fIUSERNAME\fR
563User \fIUSERNAME\fR moved some track(s).
c0c23a60 564Further details aren't included any more.
460b9539 565.TP
90ad6c6e 566.B playing \fITRACK\fR [\fIUSERNAME\fR]
460b9539 567Started playing \fITRACK\fR.
568.TP
569.B queue \fIQUEUE-ENTRY\fR...
570Added \fITRACK\fR to the queue.
571.TP
572.B recent_added \fIQUEUE-ENTRY\fR...
573Added \fIID\fR to the recently played list.
574.TP
575.B recent_removed \fIID\fR
576Removed \fIID\fR from the recently played list.
577.TP
90ad6c6e 578.B removed \fIID\fR [\fIUSERNAME\fR]
c0c23a60 579Queue entry \fIID\fR was removed.
90ad6c6e 580This is used both for explicit removal (when \fIUSERNAME\fR is present)
c0c23a60 581and when playing a track (when it is absent).
460b9539 582.TP
e025abff
RK
583.B rescanned
584A rescan completed.
585.TP
90ad6c6e
RK
586.B scratched \fITRACK\fR \fIUSERNAME\fR
587\fITRACK\fR was scratched by \fIUSERNAME\fR.
460b9539 588.TP
589.B state \fIKEYWORD\fR
c0c23a60
RK
590Some state change occurred.
591The current set of keywords is:
460b9539 592.RS
593.TP
5abe307a
RK
594.B completed
595The current track completed successfully.
596.TP
460b9539 597.B disable_play
598Playing was disabled.
599.TP
600.B disable_random
601Random play was disabled.
602.TP
603.B enable_play
604Playing was enabled.
605.TP
606.B enable_random
607Random play was enabled.
608.TP
5abe307a
RK
609.B failed
610The current track failed.
611.TP
460b9539 612.B pause
613The current track was paused.
614.TP
5abe307a
RK
615.B playing
616A track started playing.
617.TP
460b9539 618.B resume
619The current track was resumed.
5abe307a 620.TP
75e7b7c3 621.B rights_changed \fIRIGHTS\fR
ad492e00
RK
622User's rights were changed.
623.TP
5abe307a
RK
624.B scratched
625The current track was scratched.
626.PP
627To simplify client implementation, \fBstate\fR commands reflecting the current
628state are sent at the start of the log.
460b9539 629.RE
58d2aad2 630.TB
75e7b7c3 631.B user_add \fIUSERNAME\fR
58d2aad2
RK
632A user was created.
633.TP
75e7b7c3 634.B user_delete \fIUSERNAME\fR
58d2aad2
RK
635A user was deleted.
636.TP
75e7b7c3 637.B user_edit \fIUSERNAME\fR \fIPROPERTY\fR
58d2aad2
RK
638Some property of a user was edited.
639.TP
75e7b7c3 640.B user_confirm \fIUSERNAME\fR
58d2aad2 641A user's login was confirmed (via the web interface).
460b9539 642.TP
643.B volume \fILEFT\fR \fIRIGHT\fR
644The volume changed.
645.PP
646.IR QUEUE-ENTRY ...
647is as defined in
648.B "TRACK INFORMATION"
649above.
58d2aad2
RK
650.PP
651The \fBuser-*\fR messages are only sent to admin users, and are not sent over
652non-local connections unless \fBremote_userman\fR is enabled.
f9635e06 653.SH "CHARACTER ENCODING"
c0c23a60
RK
654All data sent by both server and client is encoded using UTF-8.
655Moreover it must be valid UTF-8, i.e. non-minimal sequences are not
656permitted, nor are surrogates, nor are code points outside the
657Unicode code space.
f9635e06
RK
658.PP
659There are no particular normalization requirements on either side of the
c0c23a60
RK
660protocol.
661The server currently converts internally to NFC, the client must
f9635e06
RK
662normalize the responses returned if it needs some normalized form for further
663processing.
664.PP
665The various characters which divide up lines may not be followed by combining
c0c23a60
RK
666characters.
667For instance all of the following are prohibited:
f9635e06
RK
668.TP
669.B o
c0c23a60
RK
670LINE FEED followed by a combining character.
671For example the sequence LINE FEED, COMBINING GRAVE ACCENT is never permitted.
f9635e06
RK
672.TP
673.B o
674APOSTROPHE or QUOTATION MARK followed by a combining character when used to
c0c23a60
RK
675delimit fields.
676For instance a line starting APOSTROPHE, COMBINING CEDILLA is prohibited.
f9635e06
RK
677.IP
678Note that such sequences are not prohibited when the quote character cannot be
c0c23a60
RK
679interpreted as a field delimiter.
680For instance APOSTROPHE, REVERSE SOLIDUS, APOSTROPHE, COMBINING CEDILLA,
681APOSTROPHE would be permitted.
f9635e06
RK
682.TP
683.B o
684REVERSE SOLIDUS (BACKSLASH) followed by a combining character in a quoted
c0c23a60
RK
685string when it is the first character of an escape sequence.
686For instance a line starting APOSTROPHE, REVERSE SOLIDUS, COMBINING TILDE
687is prohibited.
f9635e06
RK
688.IP
689As above such sequences are not prohibited when the character is not being used
c0c23a60
RK
690to start an escape sequence.
691For instance APOSTROPHE, REVERSE SOLIDUS, REVERSE SOLIDS, COMBINING TILDE,
692APOSTROPHE is permitted.
f9635e06
RK
693.TP
694.B o
695Any of the field-splitting whitespace characters followed by a combining
c0c23a60
RK
696character when not part of a quoted field.
697For instance a line starting COLON, SPACE, COMBINING CANDRABINDU is prohibited.
f9635e06
RK
698.IP
699As above non-delimiter uses are fine.
700.TP
701.B o
702The FULL STOP characters used to quote or delimit a body.
703.PP
704Furthermore none of these characters are permitted to appear in the context of
705a canonical decomposition (i.e. they must still be present when converted to
c0c23a60
RK
706NFC).
707In practice however this is not an issue in Unicode 5.0.
f9635e06
RK
708.PP
709These rules are consistent with the observation that the split() function is
c0c23a60
RK
710essentially a naive ASCII parser.
711The implication is not that these sequences never actually appear in
712the protocol, merely that the server is not required to honor them in
713any useful way nor be consistent between versions: in current
f9635e06
RK
714versions the result will be lines and fields that start with combining
715characters and are not necessarily split where you expect, but future versions
716may remove them, reject them or ignore some or all of the delimiters that have
717following combining characters, and no notice will be given of any change.
460b9539 718.SH "SEE ALSO"
719\fBdisorder\fR(1),
720\fBtime\fR(2),
721\fBdisorder\fR(3),
722\fBpcrepattern\fR(3)
723\fBdisorder_config\fR(5),
724\fBdisorderd\fR(8),
725\fButf8\fR(7)
726.\" Local Variables:
727.\" mode:nroff
728.\" fill-column:79
729.\" End: