wdctl_thread.c File Reference

Monitoring and control of wifidog, server part. More...

Go to the source code of this file.

Functions

static void * thread_wdctl_handler (void *)
static void wdctl_status (int)
static void wdctl_stop (int)
static void wdctl_reset (int, char *)
static void wdctl_restart (int)
void thread_wdctl (void *arg)
 Listen for WiFiDog control messages on a unix domain socket.

Variables

pthread_mutex_t client_list_mutex
pthread_mutex_t config_mutex
char ** restartargv


Detailed Description

Monitoring and control of wifidog, server part.

Author:
Copyright (C) 2004 Alexandre Carmel-Veilleux <acv@acv.ca>

Definition in file wdctl_thread.c.


Function Documentation

void thread_wdctl ( void *  arg  ) 

Listen for WiFiDog control messages on a unix domain socket.

Launches a thread that monitors the control socket for request

Parameters:
arg Must contain a pointer to a string containing the Unix domain socket to open
Todo:
This thread loops infinitely, need a watchdog to verify that it is still running?

Definition at line 73 of file wdctl_thread.c.

References debug.

static void wdctl_stop ( int  fd  )  [static]

A bit of an hack, self kills....

Definition at line 224 of file wdctl_thread.c.

References wdctl_stop().

Referenced by wdctl_stop().


Variable Documentation

pthread_mutex_t client_list_mutex

Global mutex to protect access to the client list

Definition at line 48 of file client_list.c.

pthread_mutex_t config_mutex

Mutex for the configuration file, used by the auth_servers related functions.

Definition at line 56 of file conf.c.


Generated on Fri Sep 25 15:28:43 2009 for WifiDog by  doxygen 1.5.5