NAME
Email::VirusScan::Engine::FPROT::Daemon - Email::VirusScan backend for scanning with F-PROT daemon
SYNOPSIS
use Email::VirusScanner;
my $s = Email::VirusScanner->new({
engines => {
'-FPROT::Daemon' => {
host => '127.0.0.1',
base_port => 10200,
},
...
},
...
}
DESCRIPTION
Email::VirusScan backend for scanning using F-PROT's scanner daemon
This class inherits from, and follows the conventions of, Email::VirusScan::Engine. See the documentation of that module for more information.
CLASS METHODS
new ( $conf )
Creates a new scanner object. $conf is a hashref containing:
- host
-
Required.
Host name or IP address of F-PROT daemon. Probably will not work for anything other than localhost or 127.0.0.1.
- base_port
-
Optional. Defaults to 10200.
Port at which we start looking for an F-PROT daemon. We will try this port, and four more above it.
INSTANCE METHODS
scan_path ( $pathname )
Scan the path provided using the daemon on a the configured host.
Returns an Email::VirusScan::Result object.
DEPENDENCIES
IO::Socket::INET, Cwd, Email::VirusScan::Result
SEE ALSO
AUTHOR
David Skoll (dfs@roaringpenguin.com)
Dave O'Neill (dmo@roaringpenguin.com)
Steffen Kaiser
LICENCE AND COPYRIGHT
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.