rasdaman complete source
|
Go to the source code of this file.
Macros | |
#define | PROGRAM_NAME "httpserver" |
#define | PROGRAM_VERSION "1.0" |
#define | DAEMONNAME PROGRAM_NAME "/" PROGRAM_VERSION |
#define | SERVERFIELD "Server: " DAEMONNAME "\r\n" |
#define | BUFFSIZE 8192 |
#define | MAXLINELEN 4096 |
#define | PIPE_BUFFSIZE 4096 |
#define | DATE_BUFFSIZE 40 |
#define | IO_BUFFSIZE 65536 |
#define | DEFAULT_MAXURLLENGTH 1000000 |
#define | DIALOG_TIMEOUT 30 |
#define | MSGBODY_TIMEOUT 30 |
#define | TRUE 1 |
#define | FALSE 0 |
#define | max(a, b) (a > b ? a : b) |
#define | min(a, b) (a < b ? a : b) |
#define | FOREGROUND 0 |
#define | BACKGROUND 1 |
#define | FILE_MODE ( S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH ) |
#define | FT_NOFILE 0 |
#define | FT_CONFFILE 1 |
#define | FT_ACCESSLOG 2 |
#define | FT_SERVERLOG 3 |
#define | FT_COMMLOG 4 |
#define | FT_PIDFILE 5 |
#define | FT_CACHEFILE 6 |
#define | ST_NOSTRING 0 |
#define | ST_HOSTNAME 1 |
#define | ST_MAILADDRESS 2 |
#define | PIPE_OPEN 1 |
#define | PIPE_CLOSED 0 |
#define | FILE_OPEN 1 |
#define | FILE_CLOSED 0 |
#define | LF_VERB 0x0001 |
#define | LF_STDERR 0x0002 |
#define | LM_NORMAL 0 /* Not Verbose, write into log files */ |
#define | LM_VERBOSE 1 /* Verbose, write into log files */ |
#define | LM_STDERR 2 /* Not Verbose, use STDOUT/STDERR */ |
#define | LM_VERBOSE_STDERR 3 /* Verbose, use STDOUT/STDERR */ |
#define | OK 0 |
#define | DEBUG 1 |
#define | INFO 2 |
#define | NOTE 3 |
#define | WARN 5 |
#define | ERROR 10 |
#define | FAIL 20 |
#define | DUMP 50 |
#define | SYS_ERROR -1 |
#define | LG_SERVER 1 |
#define | LG_ACCESS 2 |
#define | LG_COMM 3 |
#define | E_SYS TRUE |
#define | E_PRIV FALSE |
#define | KEY_ACCESSLOG 1 |
#define | KEY_COMMLOG 2 |
#define | KEY_INDEXFILE 3 |
#define | KEY_MAXURLLENGTH 4 |
#define | KEY_PIDFILE 5 |
#define | KEY_PORT 6 |
#define | KEY_SERVERADMIN 7 |
#define | KEY_SERVERLOG 8 |
#define | KEY_SERVERNAME 9 |
#define | KEY_SERVERROOT 10 |
#define | NUM_KEYS 11 |
#define | COMM_UNSUPPORTED -3 /* don't know how to handle comm state */ |
#define | COMM_UNEXPECTED -2 /* unexpected data received */ |
#define | COMM_FAILED -1 /* trouble while communicating, protocol failure */ |
#define | COMM_IDLE 0 /* not connected and ready */ |
#define | COMM_CONNECTING 1 /* trying to connect or "Keep-Alive" connection */ |
#define | COMM_GET_RESPHEAD 2 /* reading and processing response header */ |
#define | COMM_GET_RESPBODY 3 /* reading response body */ |
#define | COMM_MAY_GET_BODY 4 /* have to check for response body */ |
#define | COMM_HERE_IS_MORE 5 /* select() indicated that there IS more data */ |
#define | COMM_DONE 9 /* communication done, protocol OK */ |
#define | COMM_RECONNECTING 10 /* trying to reconnect for authorization */ |
#define | COMM_VERIFYING 11 /* analysing response: add. processing required */ |
#define | COMM_SENDINGAUTH 12 /* (re-)sending request with authorization */ |
#define | CONN_FAILURE -3 /* Failure when setting up connection */ |
#define | CONN_BROKEN -2 /* Connection broken while communicating */ |
#define | CONN_UNDEFINED -1 /* Connection not initiated */ |
#define | CONN_CLOSE 0 /* Connection will be closed ASAP */ |
#define | CONN_OPEN 1 /* Connection is ready for communication */ |
#define | CONN_ERROR 2 /* Error condition in communication */ |
#define | DO_NOTHING 0 |
#define | DO_SINGLE_SERVER 1 |
#define | DO_REWRITE 2 |
#define | DO_SEND_RESPONSE 3 |
#define | DO_SEND_ERROR 4 |
#define | DO_SHUTDOWN 5 |
#define | BROWSER 1 |
#define | RASCLIENT 2 |
#define | MODE_HTTP_1_0 1 |
#define | MODE_HTTP_1_1 2 |
#define | REQU_OK 1 |
#define | REQU_UNKNOWN_PARAMETER 2 |
#define | REQU_UNKNOWN_CLIENT 3 |
#define | RESULT_ERROR 1 |
#define | RESULT_MDD 2 |
#define | RESULT_SKALAR 3 |
#define | CLOSE_ALL 1 |
#define | CLOSE_CLIENT_ONLY 2 /* Currently not used */ |
#define | REALLY_NOTHING 0 |
#define BACKGROUND 1 |
#define BROWSER 1 |
#define BUFFSIZE 8192 |
#define CLOSE_ALL 1 |
#define CLOSE_CLIENT_ONLY 2 /* Currently not used */ |
#define COMM_CONNECTING 1 /* trying to connect or "Keep-Alive" connection */ |
#define COMM_DONE 9 /* communication done, protocol OK */ |
#define COMM_FAILED -1 /* trouble while communicating, protocol failure */ |
#define COMM_GET_RESPBODY 3 /* reading response body */ |
#define COMM_GET_RESPHEAD 2 /* reading and processing response header */ |
#define COMM_HERE_IS_MORE 5 /* select() indicated that there IS more data */ |
#define COMM_IDLE 0 /* not connected and ready */ |
#define COMM_MAY_GET_BODY 4 /* have to check for response body */ |
#define COMM_RECONNECTING 10 /* trying to reconnect for authorization */ |
#define COMM_SENDINGAUTH 12 /* (re-)sending request with authorization */ |
#define COMM_UNEXPECTED -2 /* unexpected data received */ |
#define COMM_UNSUPPORTED -3 /* don't know how to handle comm state */ |
#define COMM_VERIFYING 11 /* analysing response: add. processing required */ |
#define CONN_BROKEN -2 /* Connection broken while communicating */ |
#define CONN_CLOSE 0 /* Connection will be closed ASAP */ |
#define CONN_ERROR 2 /* Error condition in communication */ |
#define CONN_FAILURE -3 /* Failure when setting up connection */ |
#define CONN_OPEN 1 /* Connection is ready for communication */ |
#define CONN_UNDEFINED -1 /* Connection not initiated */ |
#define DAEMONNAME PROGRAM_NAME "/" PROGRAM_VERSION |
#define DATE_BUFFSIZE 40 |
#define DEBUG 1 |
#define DEFAULT_MAXURLLENGTH 1000000 |
#define DIALOG_TIMEOUT 30 |
#define DO_NOTHING 0 |
#define DO_REWRITE 2 |
#define DO_SEND_ERROR 4 |
#define DO_SEND_RESPONSE 3 |
#define DO_SHUTDOWN 5 |
#define DO_SINGLE_SERVER 1 |
#define DUMP 50 |
#define E_PRIV FALSE |
#define E_SYS TRUE |
#define ERROR 10 |
#define FAIL 20 |
#define FALSE 0 |
#define FILE_CLOSED 0 |
#define FILE_MODE ( S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH ) |
#define FILE_OPEN 1 |
#define FOREGROUND 0 |
#define FT_ACCESSLOG 2 |
#define FT_CACHEFILE 6 |
#define FT_COMMLOG 4 |
#define FT_CONFFILE 1 |
#define FT_NOFILE 0 |
#define FT_PIDFILE 5 |
#define FT_SERVERLOG 3 |
#define INFO 2 |
#define IO_BUFFSIZE 65536 |
#define KEY_ACCESSLOG 1 |
#define KEY_COMMLOG 2 |
#define KEY_INDEXFILE 3 |
#define KEY_MAXURLLENGTH 4 |
#define KEY_PIDFILE 5 |
#define KEY_PORT 6 |
#define KEY_SERVERADMIN 7 |
#define KEY_SERVERLOG 8 |
#define KEY_SERVERNAME 9 |
#define KEY_SERVERROOT 10 |
#define LF_STDERR 0x0002 |
#define LF_VERB 0x0001 |
#define LG_ACCESS 2 |
#define LG_COMM 3 |
#define LG_SERVER 1 |
#define LM_NORMAL 0 /* Not Verbose, write into log files */ |
#define LM_STDERR 2 /* Not Verbose, use STDOUT/STDERR */ |
#define LM_VERBOSE 1 /* Verbose, write into log files */ |
#define LM_VERBOSE_STDERR 3 /* Verbose, use STDOUT/STDERR */ |
#define max | ( | a, | |
b | |||
) | (a > b ? a : b) |
#define MAXLINELEN 4096 |
#define min | ( | a, | |
b | |||
) | (a < b ? a : b) |
#define MODE_HTTP_1_0 1 |
#define MODE_HTTP_1_1 2 |
#define MSGBODY_TIMEOUT 30 |
#define NOTE 3 |
#define NUM_KEYS 11 |
#define OK 0 |
#define PIPE_BUFFSIZE 4096 |
#define PIPE_CLOSED 0 |
#define PIPE_OPEN 1 |
#define PROGRAM_NAME "httpserver" |
#define PROGRAM_VERSION "1.0" |
#define RASCLIENT 2 |
#define REALLY_NOTHING 0 |
#define REQU_OK 1 |
#define REQU_UNKNOWN_CLIENT 3 |
#define REQU_UNKNOWN_PARAMETER 2 |
#define RESULT_ERROR 1 |
#define RESULT_MDD 2 |
#define RESULT_SKALAR 3 |
#define SERVERFIELD "Server: " DAEMONNAME "\r\n" |
#define ST_HOSTNAME 1 |
#define ST_MAILADDRESS 2 |
#define ST_NOSTRING 0 |
#define SYS_ERROR -1 |
#define TRUE 1 |
#define WARN 5 |