|
libwebsockets
Lightweight C library for HTML5 websockets
|
Go to the source code of this file.
Data Structures | |
| struct | lws_cgi_args |
| struct | lws_cgi_info |
Enumerations | |
| enum | lws_enum_stdinouterr { LWS_STDIN = 0 , LWS_STDOUT = 1 , LWS_STDERR = 2 } |
| enum | lws_cgi_hdr_state { LCHS_HEADER , LCHS_CR1 , LCHS_LF1 , LCHS_CR2 , LCHS_LF2 , LHCS_RESPONSE , LHCS_DUMP_HEADERS , LHCS_PAYLOAD , LCHS_SINGLE_0A } |
| struct lws_cgi_args |
Collaboration diagram for lws_cgi_args:| Data Fields | ||
|---|---|---|
| struct lws ** | stdwsi |
get fd with lws_get_socket_fd() |
| enum lws_enum_stdinouterr | ch |
channel index |
| unsigned char * | data |
for messages with payload |
| enum lws_cgi_hdr_state | hdr_state |
track where we are in cgi headers |
| int | len |
length |
| struct lws_cgi_info |
struct lws_cgi_info - parameters to spawn network-connected cgi process when using lws_cgi_via_info()
Collaboration diagram for lws_cgi_info:| Data Fields | ||
|---|---|---|
| struct lws * | wsi |
connection to own the process |
| const char *const * | exec_array |
array of "exec-name" "arg1" ... "argn" NULL |
| int | script_uri_path_len |
how many chars on the left of the uri are the path to the cgi, or -1 to spawn without URL-related env vars |
| int | timeout_secs |
seconds script should be allowed to run |
| const struct lws_protocol_vhost_options * | mp_cgienv |
pvo list with per-vhost cgi options to put in env |
| const char * | chroot_path |
NULL, or chroot patch for child process |
| const char * | wd |
working directory to cd to after fork, NULL defaults to /tmp |
| enum lws_enum_stdinouterr |
| Enumerator | |
|---|---|
| LWS_STDIN | |
| LWS_STDOUT | |
| LWS_STDERR | |
| enum lws_cgi_hdr_state |
| Enumerator | |
|---|---|
| LCHS_HEADER | |
| LCHS_CR1 | |
| LCHS_LF1 | |
| LCHS_CR2 | |
| LCHS_LF2 | |
| LHCS_RESPONSE | |
| LHCS_DUMP_HEADERS | |
| LHCS_PAYLOAD | |
| LCHS_SINGLE_0A | |
Definition at line 41 of file lws-cgi.h.