Previous: Standard Commands, Up: Dictionary Server Protocol [Contents][Index]
In addition to the standard commands, the Dico server also offers a set of experimental or extended commands.
This command displays the current inactivity timeout setting (see inactivity-timeout), and resets idle timer to 0. The timeout value is printed as the first word after a ‘110’ reply code, e.g.:
C: XIDLE S: 110 180 second(s)
The value of ‘0’ means there are no timeout.
This command displays the daemon implementation and version number. It becomes available only if ‘xversion’ capability was requested in the configuration file (see xversion).
C: XVERSION S: 110 dicod (dico 2.11.90)
If param is the word ‘tell’, displays the current value of Levenshtein threshold. If param is a positive integer value, sets the Levenshtein threshold to this value.
This command becomes available only if ‘xlev’ capability was requested in the configuration file (see xlev).
C: xlev tell S: 280 1 C: xlev 3 S: 250 ok - Levenshtein threshold set to 3 C: xlev tell S: 280 3
Used without arguments, this command reports the markup language preferred for the output. If an argument is supplied, the preferred markup language is set to name. This command is enabled if the statement
capability markup;
is used in the configuration file (see Server Capabilities).
As of version 2.11.90 the preferred markup language may be used by
dicod
modules written in Python (see Python
).
Previous: Standard Commands, Up: Dictionary Server Protocol [Contents][Index]