Re: Connecting Clamd via inet socket?

Michiel Brandenburg <[email protected]>
Newsgroups gmane.mail.mimedefang
Message-ID <[email protected]>
Hi all
> Better just to modify the Perl wrappers to use IO::Socket::INET and
> use the stream-scanning clamd protocol.

We extended the ClamAV::Client (CPAN) also handle zINSTREAM protocol, it
has worked fine for some years now.

example "code"

send("zINSTREAM\0")
while (read block (STREAM_BLOCK_SIZE)) {
  send(pack('N', length($block)) . $block)
  check_for_result
}
send(pack('N', 0))
check_for_result

Michiel Brandenburg

_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list [email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
signature.asc (application/pgp-signature, 801 B)
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJYQcUVAAoJEPBWFQZF+GY7hNoP/3CvDe1xpv8AMuCyfANIhS8k
mbUUOI9ayHnsxZRyj2cI8eBsxUMG+5h1lOrBnBJcJA3XUlcGPeFcxa3iXe6y0V57
A9xE8yvB1XtlDZmZ65kIwdBzRi80c6NhICIkJKhD/KjlkizyNwa8BJqYYscrerKS
l9J/MKZyG9TSye5JYtw+/SQ4u5wzyy8TNcUvMWFsPkUk4IPS9EL7egoyDyM0gU7H
o8/szSTMZragQgzK2geIh8uIjHTJGLHyuljMlteYVtCj7HpkZh5v1AxrvNVn6bBR
Tr+PUijeS86X3PWW+8yORazZhbXzme1b2+mJ8kN/3x0TlVrS0CP1C2d44hJ3iJq7
JjzS8YGDsRS5KhQbNs4IPe0fIqGhhXhROXtgOUK/Whd9sH88UDf4+3s01mImMFML
xdFzTvF96R6hm60AOToxXFg0WVGJ58opn39xdvHibPk65jxZkK1FSSoCyWQspFwy
fl59auTiDu52GyIm7h9A5pDJM7tydeTQZAeRw6+qTerdvUNCozJV+/rCrghWyPvH
mVrYxLK7hJ3yVQ00Qw3vCyhj72CzCTTglUWBpLJl+DcJiEeI8E3rEtvdervuQbUV
oAwoR8cCMEn1A6webcHm22iycjWivuKzIL651sCK5iTMtiSkcpF8n7NK47MPMiZ1
R7h9boG8AjiLSxwjJ805
=OUGx
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.