libwebsockets
Lightweight C library for HTML5 websockets
lws-cgi.h File Reference

Go to the source code of this file.

Data Structures

struct  lws_cgi_args
 

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
}
 

Data Structure Documentation

◆ lws_cgi_args

struct lws_cgi_args

Definition at line 53 of file lws-cgi.h.

+ 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

Enumeration Type Documentation

◆ lws_enum_stdinouterr

Enumerator
LWS_STDIN 
LWS_STDOUT 
LWS_STDERR 

Definition at line 35 of file lws-cgi.h.

35  {
36  LWS_STDIN = 0,
37  LWS_STDOUT = 1,
38  LWS_STDERR = 2,
39 };
@ LWS_STDOUT
Definition: lws-cgi.h:37
@ LWS_STDERR
Definition: lws-cgi.h:38
@ LWS_STDIN
Definition: lws-cgi.h:36

◆ 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.

41  {
43  LCHS_CR1,
44  LCHS_LF1,
45  LCHS_CR2,
46  LCHS_LF2,
51 };
@ LCHS_LF2
Definition: lws-cgi.h:46
@ LHCS_RESPONSE
Definition: lws-cgi.h:47
@ LCHS_CR1
Definition: lws-cgi.h:43
@ LCHS_HEADER
Definition: lws-cgi.h:42
@ LHCS_DUMP_HEADERS
Definition: lws-cgi.h:48
@ LCHS_LF1
Definition: lws-cgi.h:44
@ LCHS_SINGLE_0A
Definition: lws-cgi.h:50
@ LCHS_CR2
Definition: lws-cgi.h:45
@ LHCS_PAYLOAD
Definition: lws-cgi.h:49