Data Structures | Files | Defines | Functions

Web server
[Apps]

Collaboration diagram for Web server:

Data Structures

struct  httpd_cgi_call

Files

file  httpd-cgi.c
file  httpd-cgi.h
file  httpd.c
file  httpd-cgi.c

Defines

#define HTTPD_CGI_CALL(name, str, function)
 HTTPD CGI function declaration.
#define STATE_WAITING   0
#define STATE_OUTPUT   1
#define ISO_nl   0x0a
#define ISO_space   0x20
#define ISO_bang   0x21
#define ISO_percent   0x25
#define ISO_period   0x2e
#define ISO_slash   0x2f
#define ISO_colon   0x3a
#define PASSWORD   "sisca"

Functions

 HTTPD_CGI_CALL (temp,"tag-temp", cgitemperature)
void cgiProcessFormInput (char *pcInputString, int xInputLength)
typedef PT_THREAD ((*httpd_cgifunction)(struct httpd_state *, char *))
httpd_cgifunction httpd_cgi (char *name)
void httpd_cgi_init (void)
 HTTPD_CGI_CALL (setp,"tag-setpoint", cgisetpoint)
 HTTPD_CGI_CALL (estad,"tag-estado", cgiestado)

Detailed Description

The uIP web server is a very simplistic implementation of an HTTP server. It can serve web pages and files from a read-only ROM filesystem, and provides a very small scripting language.


Define Documentation

#define HTTPD_CGI_CALL (   name,
  str,
  function 
)
Parameters:
name The C variable name of the function
str The string name of the function, used in the script file
function A pointer to the function that implements it

This macro is used for declaring a HTTPD CGI function. This function is then added to the list of HTTPD CGI functions with the httpd_cgi_add() function.

Definition at line 77 of file httpd-cgi.h.

#define ISO_bang   0x21

Definition at line 71 of file httpd.c.

#define ISO_colon   0x3a

Definition at line 75 of file httpd.c.

#define ISO_nl   0x0a

Definition at line 69 of file httpd.c.

#define ISO_percent   0x25

Definition at line 72 of file httpd.c.

#define ISO_period   0x2e

Definition at line 73 of file httpd.c.

#define ISO_slash   0x2f

Definition at line 74 of file httpd.c.

#define ISO_space   0x20

Definition at line 70 of file httpd.c.

#define PASSWORD   "sisca"

Definition at line 144 of file httpd-cgi.c.

#define STATE_OUTPUT   1

Definition at line 67 of file httpd.c.

#define STATE_WAITING   0

Definition at line 66 of file httpd.c.


Function Documentation

void cgiProcessFormInput ( char *  pcInputString,
int  xInputLength 
)

Definition at line 146 of file httpd-cgi.c.

Here is the call graph for this function:

httpd_cgifunction httpd_cgi ( char *  name  ) 
HTTPD_CGI_CALL ( temp  ,
"tag-temp"  ,
cgitemperature   
)
HTTPD_CGI_CALL ( setp  ,
"tag-setpoint ,
cgisetpoint   
)
HTTPD_CGI_CALL ( estad  ,
"tag-estado"  ,
cgiestado   
)
void httpd_cgi_init ( void   ) 
typedef PT_THREAD ( (*)(struct httpd_state *, char *)  httpd_cgifunction  )