#include <errno.h>
#include <sys/wait.h>
#include <string.h>
#include <unistd.h>
#include <openvas/misc/network.h>
#include <openvas/misc/internal_com.h>
#include "utils.h"
#include "log.h"
#include "hosts.h"
#include "ntp.h"
Go to the source code of this file.
|
struct | host |
| Host information, implemented as doubly linked list. More...
|
|
◆ hosts_init()
int hosts_init |
( |
int |
soc, |
|
|
int |
max_hosts |
|
) |
| |
Definition at line 168 of file hosts.c.
171 g_max_hosts = max_hosts;
◆ hosts_new()
int hosts_new |
( |
struct arglist * |
globals, |
|
|
char * |
name, |
|
|
int |
soc |
|
) |
| |
Definition at line 178 of file hosts.c.
182 while (hosts_num () >= g_max_hosts)
190 h = g_malloc0 (
sizeof (
struct host));
Host information, implemented as doubly linked list.
int hosts_read(struct arglist *globals)
Returns -1 if client asked to stop all tests or connection was lost or error. 0 otherwise.
◆ hosts_read()
int hosts_read |
( |
struct arglist * |
globals | ) |
|
Returns -1 if client asked to stop all tests or connection was lost or error. 0 otherwise.
Definition at line 357 of file hosts.c.
359 if (hosts_read_client (globals) < 0)
362 log_write (
"Client abruptly closed the communication");
void hosts_stop_all(void)
void log_write(const char *str,...)
Write into the logfile / syslog.
◆ hosts_set_pid()
int hosts_set_pid |
( |
char * |
name, |
|
|
pid_t |
pid |
|
) |
| |
Definition at line 204 of file hosts.c.
void log_write(const char *str,...)
Write into the logfile / syslog.
Host information, implemented as doubly linked list.
◆ hosts_stop_all()
void hosts_stop_all |
( |
void |
| ) |
|
Definition at line 230 of file hosts.c.
237 hosts_stop_host (
host);
Host information, implemented as doubly linked list.
◆ global_scan_stop