doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Enumerations | Functions | Variables
sws.c File Reference
#include "setup.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <unistd.h>
#include <signal.h>
#include <time.h>
#include <sys/time.h>
#include <sys/types.h>
#include "getpart.h"

Go to the source code of this file.

Classes

struct  httprequest
 

Macros

#define FALSE   0
 
#define TRUE   1
 
#define REQBUFSIZ   150000
 
#define REQBUFSIZ_TXT   "149999"
 
#define DEFAULT_PORT   8999
 
#define DEFAULT_LOGFILE   "log/sws.log"
 
#define SWSVERSION   "cURL test suite HTTP server/0.1"
 
#define REQUEST_DUMP   "log/server.input"
 
#define RESPONSE_DUMP   "log/server.response"
 
#define TEST_DATA_PATH   "%s/data/test%d"
 
#define MAXDOCNAMELEN   140000
 
#define MAXDOCNAMELEN_TXT   "139999"
 
#define REQUEST_KEYWORD_SIZE   256
 
#define CMD_AUTH_REQUIRED   "auth_required"
 
#define END_OF_HEADERS   "\r\n\r\n"
 

Enumerations

enum  {
  DOCNUMBER_NOTHING = -7, DOCNUMBER_QUIT = -6, DOCNUMBER_BADCONNECT = -5, DOCNUMBER_INTERNAL = -4,
  DOCNUMBER_CONNECT = -3, DOCNUMBER_WERULEZ = -2, DOCNUMBER_404 = -1
}
 

Functions

int ProcessRequest (struct httprequest *req)
 
void storerequest (char *reqbuf)
 
int main (int argc, char *argv[])
 

Variables

const char * path ="."
 

Macro Definition Documentation

#define CMD_AUTH_REQUIRED   "auth_required"

Definition at line 114 of file sws.c.

#define DEFAULT_LOGFILE   "log/sws.log"

Definition at line 98 of file sws.c.

#define DEFAULT_PORT   8999

Definition at line 95 of file sws.c.

#define END_OF_HEADERS   "\r\n\r\n"

Definition at line 191 of file sws.c.

#define FALSE   0

Definition at line 58 of file sws.c.

#define MAXDOCNAMELEN   140000

Definition at line 109 of file sws.c.

#define MAXDOCNAMELEN_TXT   "139999"

Definition at line 110 of file sws.c.

#define REQBUFSIZ   150000

Definition at line 74 of file sws.c.

#define REQBUFSIZ_TXT   "149999"

Definition at line 75 of file sws.c.

#define REQUEST_DUMP   "log/server.input"

Definition at line 103 of file sws.c.

#define REQUEST_KEYWORD_SIZE   256

Definition at line 112 of file sws.c.

#define RESPONSE_DUMP   "log/server.response"

Definition at line 104 of file sws.c.

#define SWSVERSION   "cURL test suite HTTP server/0.1"

Definition at line 101 of file sws.c.

#define TEST_DATA_PATH   "%s/data/test%d"

Definition at line 106 of file sws.c.

#define TRUE   1

Definition at line 61 of file sws.c.

Enumeration Type Documentation

anonymous enum
Enumerator
DOCNUMBER_NOTHING 
DOCNUMBER_QUIT 
DOCNUMBER_BADCONNECT 
DOCNUMBER_INTERNAL 
DOCNUMBER_CONNECT 
DOCNUMBER_WERULEZ 
DOCNUMBER_404 

Definition at line 119 of file sws.c.

Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 652 of file sws.c.

int ProcessRequest ( struct httprequest req)

Definition at line 201 of file sws.c.

void storerequest ( char *  reqbuf)

Definition at line 406 of file sws.c.

Variable Documentation

const char* path ="."

Definition at line 117 of file sws.c.