Function clamav_client::scan_buffer_tcp
source · pub fn scan_buffer_tcp<A: ToSocketAddrs>(
buffer: &[u8],
host_address: A,
chunk_size: Option<usize>
) -> IoResultExpand description
Scans a data buffer for viruses using a TCP connection
This function streams the provided buffer data to a ClamAV server through
a TCP connection for scanning.
Arguments
buffer: The data to be scannedhost_address: The address (host and port) of the ClamAV serverchunk_size: An optional chunk size for reading data. IfNone, a default chunk size is used
Returns
An IoResult containing the server’s response as a vector of bytes