wdctl.c File Reference

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

Go to the source code of this file.

Functions

static void usage (void)
static void init_config (void)
static void parse_commandline (int, char **)
 Parses the command line and set the config accordingly.
static int connect_to_server (char *)
static size_t send_request (int, char *)
static void wdctl_status (void)
static void wdctl_stop (void)
static void wdctl_reset (void)
static void wdctl_restart (void)
int main (int argc, char **argv)

Variables

s_config config


Detailed Description

Monitoring and control of wifidog, client part.

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

Definition in file wdctl.c.


Function Documentation

static void parse_commandline ( int  argc,
char **  argv 
) [static]

Parses the command line and set the config accordingly.

Uses getopt() to parse the command line and set configuration values also populates restartargv

Definition at line 77 of file commandline.c.

References config_get_config(), s_config::configfile, s_config::daemon, s_config::debuglevel, s_config::internal_sock, s_config::log_syslog, safe_malloc(), and s_config::wdctl_sock.


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