wdctl.c File Reference

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

Go to the source code of this file.

Defines

#define _GNU_SOURCE

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 int 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, config_get_config(), s_config::configfile, s_config::daemon, s_config::debuglevel, s_config::internal_sock, s_config::log_syslog, restart_orig_pid, restartargv, safe_asprintf(), safe_malloc(), safe_strdup(), usage(), and s_config::wdctl_sock.


Generated on Sun Apr 13 21:55:01 2008 for WifiDog by  doxygen 1.5.3