Browse code

add VERSIONCOMMANDS to manpage.

git-svn: trunk@4923

Török Edvin authored on 2009/03/11 02:59:33
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Tue Mar 10 19:59:29 EET 2009 (edwin)
2
+------------------------------------
3
+ * docs/man/clamd.8.in: add VERSIONCOMMANDS to manpage.
4
+
1 5
 Tue Mar 10 19:50:59 EET 2009 (edwin)
2 6
 ------------------------------------
3 7
  * clamd/session.c, clamd/session.h, unit_tests/check_clamd.c: new
... ...
@@ -67,6 +67,18 @@ Clamd requires clients to read all the replies it sent, before sending more comm
67 67
 \fINote that using non-blocking sockets without the select/poll loop and alternating recv()/send() doesn't comply with clamd's requirements.\fR
68 68
 
69 69
 If clamd detects that a client has deadlocked,  it will close the connection. Note that clamd may close an IDSESSION connection too if you don't follow the protocol's requirements.
70
+.TP
71
+\fBVERSIONCOMMANDS\fR
72
+It is mandatory to prefix this command with either \fBn\fR or \fBz\fR.
73
+It is recommended to use \fBnVERSIONCOMMANDS\fR.
74
+
75
+Print program and database versions, followed by "| COMMANDS:" and a
76
+space-delimited list of supported commands.
77
+Clamd <0.95 will recognize this as the VERSION command, and reply only with
78
+their version, without the commands list.
79
+
80
+This command can be used as an easy way to check for IDSESSION support for
81
+example.
70 82
 .LP
71 83
 .TP 
72 84
 \fBDEPRECATED COMMANDS\fR