GNU Dico Manual (split by node):   Section:   Chapter:FastBack: Dictionary Server Protocol   Up: Dictionary Server Protocol   FastForward: Time and Date Formats   Contents: Table of ContentsIndex: Concept Index

B.3 Extended Commands

In addition to the standard commands, the Dico server also offers a set of experimental or extended commands.

Command: XIDLE

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.

Command: XVERSION

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.7)
Command: XLEV param

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

GNU Dico Manual (split by node):   Section:   Chapter:FastBack: Dictionary Server Protocol   Up: Dictionary Server Protocol   FastForward: Time and Date Formats   Contents: Table of ContentsIndex: Concept Index