Hello, > Stormont, Stephen (IMS) wrote: > > We are thinking of utilizing ClamAV, but we wanted to know exactly how > > the API is implemented. Does the client makes a socket connection to a > > daemon. Or does the client load a shared object file which includes the > > provided functionality. Or does the client make a shell call to use a > > command line utility. Or is there some other method?
please configure your mailer to wrap lines below 80 characters per line. 72 to 75 is usually OK. Thank you. On 18.05.09 18:02, aCaB wrote: > All the three. > Your options are: > > 1- link your code to libclamav > 2- run the clamav daemon (clamd), connect to it via a tcp or unix > socket, and speak the clamd proto 1 and 2 should be swapped. Note that libclamav also provider scanning directly, not only via clamd. I don't know about lightweight library that only supports clamd, via file name/descriptor passing or by sending through socket. > 3- run one of the provided clients and parse their output. clamscan is > linked to libclamav, clamdscan talks to the daemon instead. > > Everything is documented at http://www.clamav.net/doc/latest/html/ > and in the tools manpages. -- Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. "One World. One Web. One Program." - Microsoft promotional advertisement "Ein Volk, ein Reich, ein Fuhrer!" - Adolf Hitler _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://www.clamav.net/support/ml