Web server
[Apps]
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 |
|
) |
|
HTTPD CGI function declaration.
- 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.
Function Documentation
httpd_cgifunction httpd_cgi |
( |
char * |
name |
) |
|
HTTPD_CGI_CALL |
( |
net |
, |
|
|
"net-stats" |
, |
|
|
net_stats |
| |
|
) |
| | |
HTTPD_CGI_CALL |
( |
tcp |
, |
|
|
"tcp-connections" |
, |
|
|
tcp_stats |
| |
|
) |
| | |
HTTPD_CGI_CALL |
( |
file |
, |
|
|
"file-stats" |
, |
|
|
file_stats |
| |
|
) |
| | |
void httpd_cgi_init |
( |
void |
|
) |
|
typedef PT_THREAD |
( |
(*)(struct httpd_state *, char *) |
httpd_cgifunction |
) |
|