Go to the source code of this file.
Defines | |
#define | _GNU_SOURCE |
Functions | |
static void | ping (void) |
void | thread_ping (void *arg) |
Periodically checks on the auth server to see if it's alive. | |
Variables | |
time_t | started_time |
Definition in file ping_thread.c.
static void ping | ( | void | ) | [static] |
We don't have to use FD_ISSET() because there was only one fd.
Definition at line 94 of file ping_thread.c.
References t_auth_serv::authserv_hostname, t_auth_serv::authserv_path, t_auth_serv::authserv_ping_script_path_fragment, config_get_config(), connect_auth_server(), debug, get_auth_server(), and MAX_BUF.
Referenced by thread_ping().
void thread_ping | ( | void * | arg | ) |
Periodically checks on the auth server to see if it's alive.
Launches a thread that periodically checks in with the wifidog auth server to perform heartbeat function.
arg | NULL |
Definition at line 64 of file ping_thread.c.