#include "nsd.h"Defines | |
| #define | THREAD_STACKSIZE (128*1024) |
| #define | SCHED_MAXELAPSED 2 |
| #define | SHUTDOWNTIMEOUT 20 |
| #define | LISTEN_BACKLOG 32 |
| #define | TCL_INITLCK 0 |
| #define | HTTP_MAJOR 1 |
| #define | HTTP_MINOR 1 |
Functions | |
| void | NsInitConf (void) |
| void | NsConfUpdate (void) |
| int | NsParamInt (char *key, int def) |
| bool | NsParamBool (char *key, int def) |
| char * | NsParamString (char *key, char *def) |
Variables | |
| _nsconf | nsconf |
| #define HTTP_MAJOR 1 |
| #define HTTP_MINOR 1 |
| #define LISTEN_BACKLOG 32 |
| #define SCHED_MAXELAPSED 2 |
| #define SHUTDOWNTIMEOUT 20 |
| #define TCL_INITLCK 0 |
| #define THREAD_STACKSIZE (128*1024) |
| void NsConfUpdate | ( | void | ) |
----------------------------------------------------------------------
NsConfUpdate --
Update various elements of the nsconf structure now that the config script has been evaluated.
Results: None.
Side effects: Various, depending on config.
----------------------------------------------------------------------
| void NsInitConf | ( | void | ) |
----------------------------------------------------------------------
NsInitConf --
Initialize core elements of the nsconf structure at startup.
Results: None.
Side effects: None.
----------------------------------------------------------------------
NB: Declared in stamp.c
Set various core environment variables.
Set various default values.
At library load time the server is considered started. Normally it's marked stopped immediately by Ns_Main unless libnsd is being used for some other, non-server program.
| int NsParamInt | ( | char * | key, | |
| int | def | |||
| ) |
----------------------------------------------------------------------
NsParamInt, NsParamBool, NsParamString --
Helper routines for getting int, bool, or string paramaters from the ns/parameters config section, returning defaults if no config is set.
Results: Config value or default.
Side effects: None.
----------------------------------------------------------------------
| char* NsParamString | ( | char * | key, | |
| char * | def | |||
| ) |
1.5.1