The output format of clamd is very similar to clamscan.
	$ telnet localhost 3310
	Connected to localhost.
	Escape character is '^]'.
	SCAN /home/zolw/test
	/home/zolw/test/clam.exe: ClamAV-Test-File FOUND
	Connection closed by foreign host.
In the SCAN mode it closes the connection when the first virus is found.
	SCAN /home/zolw/test/
	/home/zolw/test/ ClamAV-Test-File FOUND
CONTSCAN and MULTISCAN don't stop scanning in case a virus is found.
Error messages are printed in the following format:
	SCAN /no/such/file
	/no/such/file: Can't stat() the file. ERROR

Cisco 2016-04-21