File::VirusScan::Engine::Daemon::ClamAV::Clamd - File::VirusScan backend for scanning with clamd
use File::VirusScanner; my $s = File::VirusScanner->new({ engines => { '-Daemon::ClamAV::Clamd' => { socket_name => '/path/to/clamd.ctl', }, ... }, ... }
File::VirusScan backend for scanning using ClamAV's clamd daemon.
File::VirusScan::Engine::Daemon::ClamAV::Clamd inherits from, and follows the conventions of, File::VirusScan::Engine::Daemon. See the documentation of that module for more information.
Creates a new scanner object. $conf is a hashref containing:
Required.
This must be a fully-qualified path to the clamd socket. Currently, only local clamd connections over a UNIX socket are supported.
Optional. Defaults to 5 seconds.
Timeout in seconds waiting for a clamd 'PING' command to return.
Optional. Defaults to 60 seconds.
Timeout in seconds for waiting on clamd socket reads.
Optional. Defaults to 30 seconds.
Timeout in seconds for waiting for clamd socket to be writeable.
Optional. Default is undef.
This config option can be a reference to an instance of File::VirusScan::Engine::Daemon object that will be used as a fallback in the event that clamd returns a 'zip module failure' error.
Scan the path provided using clamd on a the configured local UNIX socket.
Returns an File::VirusScan::Result object.
IO::Socket::UNIX, IO::Select, Scalar::Util, Cwd, File::VirusScan::Result,
http://www.clamav.net/
David Skoll (dfs@roaringpenguin.com)
Dave O'Neill (dmo@roaringpenguin.com)
Copyright (c) 2007 Roaring Penguin Software, Inc.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install File::VirusScan, copy and paste the appropriate command in to your terminal.
cpanm
cpanm File::VirusScan
CPAN shell
perl -MCPAN -e shell install File::VirusScan
For more information on module installation, please visit the detailed CPAN module installation guide.