clamd
is a multi-threaded daemon that uses libclamav
to scan files for viruses. It may work in one or both modes listening on:
clamd.conf
file
6. clamd
recognizes the following commands:
clamd
will return a new port number you should
connect to and send data to scan.
clamd
session - you can do multiple commands
per TCP session (WARNING: due to the clamd
implementation the
RELOAD command will break the session).
n
(eg. nSCAN
) to indicate that the command will be delimited by
a newline character and that clamd should continue reading command data
until a newline is read. The newline delimiter assures that the complete
command and its entire argument will be processed as a single command.
Clamd can handle the following signals:
&
or external tools. Instead, you should run and wait for clamd
to load the database and daemonize itself. After that, clamd is instantly
ready to accept connections and perform file scanning.
Tomasz Kojm 2008-11-26