function _clamav_get_version_via_daemon in ClamAV 7
Same name and namespace in other branches
- 6 clamav.inc \_clamav_get_version_via_daemon()
Get version information from a clamav daemon.
Parameters
String $host:
Int $port:
Return value
String
1 call to _clamav_get_version_via_daemon()
- clamav_get_version in ./
clamav.inc - Get the version information for clamav.
File
- ./
clamav.inc, line 388 - clamav.inc API and helper functions for the ClamAV module.
Code
function _clamav_get_version_via_daemon($host, $port) {
$handler = @fsockopen($host, $port);
if (!$handler) {
return NULL;
}
fwrite($handler, "VERSION\n");
$content = fgets($handler);
fclose($handler);
return $content;
}