FACT++  1.0
webServer.c File Reference
#include <dim.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
+ Include dependency graph for webServer.c:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BUFSIZE   8096
 
#define WERROR   42
 
#define SORRY   43
 
#define LOG   44
 
#define O_BINARY   0
 

Functions

int web_open_server ()
 
void web_write ()
 
int web_close ()
 
int did_init ()
 
int check_browser_changes ()
 
int find_services ()
 
void getTime (char *buffer)
 
void log_it (int type, char *s1, char *s2, int conn_id)
 
int getParameters (char *buffer, char(*pars)[], char *ptrs[])
 
int getNodeParameters (char *buffer, char *node, int *browser)
 
int getServerParameters (char *buffer, char *node, char *server, int *pid, int *browser)
 
int getServiceParameters (char *buffer, char *service, int *req, int *browser, int *force)
 
char * unescape (char *buffer)
 
void sendData (int conn_id, char *buffer, int type)
 
void sendSmiData (int conn_id, char *buffer, int type)
 
void sendFile (int conn_id, char *buffer, int size)
 
static void handler (int conn_id, char *packet, int size, int status)
 
static void error_handler (int conn_id, int severity, int errcode, char *reason)
 
int main (int argc, char **argv)
 

Variables

int WebDID_Debug = 0
 
struct {
   char *   ext
 
   char *   filetype
 
extensions []
 
char JSONHeader []
 
char * JSONBuffer
 
static char * conv_buffer = 0
 
static int conv_buffer_size = 0