Class TClamSend

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TClamSend = class(TSynaClient)

Description

Implementation of ClamAV-daemon client protocol

By this class you can scan any your data by ClamAV opensource antivirus.

This class can connect to ClamD by TCP channel, send your data to ClamD and read result.

Hierarchy

Overview

Methods

Public constructor Create;
Public destructor Destroy; override;
Public function DoCommand(const Value: AnsiString): AnsiString; virtual;
Public function GetVersion: AnsiString; virtual;
Public function ScanStrings(const Value: TStrings): AnsiString; virtual;
Public function ScanStream(const Value: TStream): AnsiString; virtual;
Public function ScanStrings2(const Value: TStrings): AnsiString; virtual;
Public function ScanStream2(const Value: TStream): AnsiString; virtual;

Properties

Published property Sock: TTCPBlockSocket read FSock;
Published property DSock: TTCPBlockSocket read FDSock;
Published property Session: boolean read FSession write FSession;

Description

Methods

Public constructor Create;
 
Public destructor Destroy; override;
 
Public function DoCommand(const Value: AnsiString): AnsiString; virtual;

Call any command to ClamD. Used internally by other methods.

Public function GetVersion: AnsiString; virtual;

Return ClamAV version and version of loaded databases.

Public function ScanStrings(const Value: TStrings): AnsiString; virtual;

Scan content of TStrings.

Public function ScanStream(const Value: TStream): AnsiString; virtual;

Scan content of TStream.

Public function ScanStrings2(const Value: TStrings): AnsiString; virtual;

Scan content of TStrings by new 0.95 API.

Public function ScanStream2(const Value: TStream): AnsiString; virtual;

Scan content of TStream by new 0.95 API.

Properties

Published property Sock: TTCPBlockSocket read FSock;

Socket object used for TCP/IP operation. Good for seting OnStatus hook, etc.

Published property DSock: TTCPBlockSocket read FDSock;

Socket object used for TCP data transfer operation. Good for seting OnStatus hook, etc.

Published property Session: boolean read FSession write FSession;

Can turn-on session mode of communication with ClamD. Default is False, because ClamAV developers design their TCP code very badly and session mode is broken now (CVS-20051031). Maybe ClamAV developers fix their bugs and this mode will be possible in future.


Generated by PasDoc 0.9.0 on 2012-04-23 21:38:50