auth.c File Reference

Authentication handling thread. More...

Go to the source code of this file.

Functions

void thread_client_timeout_check (const void *arg)
 Periodically check if connections expired.
void authenticate_client (request *r)
 Authenticate a single client against the central server.

Variables

pthread_mutex_t client_list_mutex
long served_this_session


Detailed Description

Authentication handling thread.

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

Definition in file auth.c.


Function Documentation

void authenticate_client ( request *  r  ) 

void thread_client_timeout_check ( const void *  arg  ) 

Periodically check if connections expired.

Launches a thread that periodically checks if any of the connections has timed out

Parameters:
arg Must contain a pointer to a string containing the IP adress of the client to check to check
Todo:
Also pass MAC adress?
Todo:
This thread loops infinitely, need a watchdog to verify that it is still running?

Definition at line 63 of file auth.c.

References s_config::checkinterval, config_get_config(), and debug.


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.


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