ClamdScanner
MMO\edms\scanners · 1 symbol · generated 30 Nov 2026
ClamdScanner
ClamdScanner.php:19The files analysed by a clamd daemon (ClamAV), through its socket: the bytes are sent to it (INSTREAM), so it needs no access to the application's files, and php no extension.
- Namespace
MMO\edms\scanners- Implements
- iScanner
Index
| chunkSize | ||
| socket | ||
| timeout | ||
| ask($command, $stream) | Send $command (z commands: their answer ends with a NUL), then the bytes of $stream, if any, in chunks | |
| ping() | ||
| scan($filename) | ||
| __construct($socket) |
Properties3
chunkSize
- Type
- int
socket
- Type
- string
timeout
- Type
- float
Methods4
ask($command, $stream)
ClamdScanner.php:57Send $command (z commands: their answer ends with a NUL), then the bytes of $stream, if any, in chunks
ping()
ClamdScanner.php:46| returns | bool | true if clamd answers (PING): what a health check asks |