Hello everyone and thanks for reading my message. I want to use clamd to scan files that are uploaded to a Java Servlet. So far, I've connected to clamd and clamd answered the PORT that I should connect to send the file. So far so good.
When I connect to that port and send the data (raw, as a byte array), clamd never answers. The questions here are: 1- In which port does clamd answer? I assume it's the same one through which I sent the file. I want to read the answer to know if the file is infected or not. 2- I comnfigured the logging so that it logs clean files also. Look at the log so far: Mon Mar 14 18:21:07 2005 -> Accepted connection on port 1550, fd 7 Mon Mar 14 18:22:05 2005 -> Accepted connection on port 1057, fd 11 Mon Mar 14 18:23:07 2005 -> ERROR: ScanStream: read timeout. Mon Mar 14 18:23:07 2005 -> ERROR: ScanStream: read poll failed. Mon Mar 14 18:23:07 2005 -> stream: OK Mon Mar 14 18:24:06 2005 -> ERROR: ScanStream: read timeout. Mon Mar 14 18:24:06 2005 -> ERROR: ScanStream: read poll failed. Mon Mar 14 18:24:06 2005 -> stream: OK Mon Mar 14 18:25:26 2005 -> Accepted connection on port 1025, fd 7 Mon Mar 14 18:25:59 2005 -> stream: OK (I've tried a couple of times). Well, that's all for now. thanks for answering. John __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ _______________________________________________ http://lurker.clamav.net/list/clamav-devel.html