Rust ClamAV Client
A simple ClamAV client to stream files to the ClamAV daemon clamd for antivirus scanning.
Please note: The functions ping_socket
and scan_socket
are only available on Unix platforms.
Installation
Add this to your Cargo.toml
:
[]
= "0.1.3"
Usage
let clamd_host_address = "localhost:3310";
// Ping clamd to make sure the server is available and accepting TCP connections
let clamd_available = match ping_tcp ;
if !clamd_available
// Scan file for viruses
let file_path = "virus.txt";
let scan_response = scan_tcp.unwrap;
let file_clean = clean.unwrap;
if file_clean else