Hi Phil,

I'm integrating virus scanning into a file upload system. I use ClamAV, and it's simple to do with an external action:

#!/bin/sh
cat $file | /usr/local/bin/clamdscan -

But it's not terribly efficient, since I have to:

*write the variable containing the upload
*have witango spawn a process to execute clamdscan


I'm hoping that you're implementing external sockets in V6, so I could do something similar to this perl interface:
http://search.cpan.org/dist/ClamAV-Client/lib/ClamAV/Client.pm

I picture that we would instantiate the socket, similar to Object instances or DOM variables, and then use the socket.

<@ASSIGN NAME="scanner" SCOPE="instance" VALUE="<@SOCKET PORT='3310' HOST='127.0.0.1'>">

....

<@ASSIGN SCOPE="method" NAME="result" VALUE="<<@STREAM SOCKET='@@instance$scanner' VALUE='@@method$file'>">

Where we have a new tag to create a socket variable, and another tag to stream IO to the socket.

Thanks.

Bill

William M. Conlon, P.E., Ph.D.
To the Point
2330 Bryant Street
Palo Alto, CA 94301
   vox:  650.327.2175 (direct)
   fax:  650.329.8335
mobile:  650.906.9929
e-mail:  mailto:[EMAIL PROTECTED]
   web:  http://www.tothept.com



________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to