Go to the source code of this file.
◆ hosts_init()
int hosts_init |
( |
int |
, |
|
|
int |
|
|
) |
| |
Definition at line 168 of file hosts.c.
171 g_max_hosts = max_hosts;
◆ hosts_new()
int hosts_new |
( |
struct arglist * |
, |
|
|
char * |
, |
|
|
int |
|
|
) |
| |
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 * |
| ) |
|
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 * |
, |
|
|
pid_t |
|
|
) |
| |
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.