The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

File::VirusScan::Engine::Daemon::FPROT::V6 - File::VirusScan backend for scanning with F-PROT daemon, version 4

SYNOPSIS

    use File::VirusScan;
    my $s = File::VirusScan->new({
        engines => {
                '-Daemon::FPROT::V6' => {
                        host      => '127.0.0.1',
                        port      => 10200,
                },
                ...
        },
        ...
}

DESCRIPTION

File::VirusScan backend for scanning using F-PROT's scanner daemon

This class inherits from, and follows the conventions of, File::VirusScan::Engine::Daemon. See the documentation of that module for more information.

CLASS METHODS

new ( $conf )

Creates a new scanner object. $conf is a hashref containing:

host

Optional. Defaults to 127.0.0.1

Host name or IP address of F-PROT daemon. Will not work for anything other than localhost or 127.0.0.1, as we perform local path scanning rather than transmission of the file over the socket.

port

Optional. Defaults to 10200.

connect_timeout

In seconds. Optional. Defaults to 10.

Timeout on connection to the F-PROT socket.

read_timeout

In seconds. Optional. Defaults to 60.

Timeout for reading response from F-PROT.

options

Reference to array of commandline-style options to be given to SCAN command.

Optional. Defaults to:

    [
        '--scanlevel=2',
        '--archive=2',
        '--heurlevel=2',
        '--adware',
        '--applications',
    ]

INSTANCE METHODS

scan ( $pathname )

Scan the path provided using the daemon on a the configured host.

Returns an File::VirusScan::Result object.

DEPENDENCIES

IO::Socket::INET, Cwd, File::VirusScan::Result

SEE ALSO

http://www.f-prot.com/

AUTHOR

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 terms of the GNU General Public License, version 2, or (at your option) any later version.