nanohttp-admin.h File Reference

Go to the source code of this file.

Defines

#define NHTTPD_ARG_ENABLE_ADMIN   "-NHTTPDadmin"
#define NHTTPD_ADMIN_CONTEXT   "/nhttp"
#define NHTTPD_ADMIN_QUERY_SERVICES   "services"
#define NHTTPD_ADMIN_QUERY_STATISTICS   "statistics"
#define NHTTPD_ADMIN_QUERY_ACTIVATE_SERVICE   "activate"
#define NHTTPD_ADMIN_QUERY_PASSIVATE_SERVICE   "passivate"

Functions

herror_t httpd_admin_init_args (int argc, char **argv)


Define Documentation

#define NHTTPD_ADMIN_CONTEXT   "/nhttp"
 

Context of the nanoHTTP admin interface.

Example query:

   http://localhost:10000/nhttp

See also:
httpd_register

Definition at line 50 of file nanohttp-admin.h.

#define NHTTPD_ADMIN_QUERY_ACTIVATE_SERVICE   "activate"
 

Parameter to enable a server.

Example query:

   http://localhost:10000/nhttp?activate=SERVICE_CONTEXT

Definition at line 90 of file nanohttp-admin.h.

#define NHTTPD_ADMIN_QUERY_PASSIVATE_SERVICE   "passivate"
 

Parameter to disable a service.

Example query:

   http://localhost:10000/nhttp?passivate=SERVICE_CONTEXT

Definition at line 103 of file nanohttp-admin.h.

#define NHTTPD_ADMIN_QUERY_SERVICES   "services"
 

Query parameter for services.

Example query:

   http://localhost:10000/nhttp?services=list

Definition at line 63 of file nanohttp-admin.h.

#define NHTTPD_ADMIN_QUERY_STATISTICS   "statistics"
 

Parameter to query service statistics.

Example query:

   http://localhost:10000/nhttp?statistics=SERVICE_CONTEXT

Definition at line 76 of file nanohttp-admin.h.

#define NHTTPD_ARG_ENABLE_ADMIN   "-NHTTPDadmin"
 

Commandline argument to enabled the nanoHTTP admin interface. This service will be reachable via the NHTTPD_ADMIN_CONTEXT.

See also:
NHTTPD_ADMIN_CONTEXT

Definition at line 35 of file nanohttp-admin.h.

Referenced by httpd_admin_init_args().


Function Documentation

herror_t httpd_admin_init_args int  argc,
char **  argv
 

Initializes the nanoHTTP admin interface with commandline arguments, if NHTTPD_ARG_ENABLED_ADMIN was specified in the commandline arguments. This service will be reachable via the NHTTP_ADMIN_CONTEXT of the nanohttp server.

Parameters:
argc commandline arg count
argv commandline arg vector
Returns:
H_OK on success
See also:
NHTTPD_ADMIN_CONTEXT

NHTTPD_ARG_ENABLE_ADMIN

Definition at line 300 of file nanohttp-admin.c.

References httpd_register(), and NHTTPD_ARG_ENABLE_ADMIN.


Generated on Thu Jan 25 23:36:03 2007 for csoap by  doxygen 1.4.6