Definitions

Macros

#define NULLCHAR   '\0'
 
#define CR   '\r'
 
#define LF   '\n'
 
#define SP   ' '
 
#define HTTP_PORT   80
 
#define TCP_MAX_LEN   1460
 
#define HTTP_NO_LIMIT   _MAKE_32(0)
 

http_interpreter() return value

#define _HTTP_KEEP_ALIVE
 
#define _HTTP_CLOSE_CONNECTION
 

HTTP Command Table

#define _HTTP_GET
 
#define _HTTP_HEAD
 
#define _HTTP_POST
 
#define _HTTP_WS
 
#define _HTTP_UNKNOWN
 

HTTP state machine

#define _HTTP_LISTENING   0
 
#define _HTTP_ESTABLISHED   1
 

HTTP limits

#define HTTP_MAX_ARG   100
 
#define HTTP_LINE_LENGTH   500
 

Detailed Description

Macro Definition Documentation

#define NULLCHAR   '\0'

Zero termination

#define CR   '\r'

Carriage return identifier

#define LF   '\n'

Line feed identifier

#define SP   ' '

Space

#define HTTP_PORT   80

Well known port for HTTP server

#define TCP_MAX_LEN   1460

Max TCP packet length

#define HTTP_NO_LIMIT   _MAKE_32(0)

http_server_init() max connection parameter

Examples:
HTTPdynamic.c, HTTPjava.c, and HTTPsimple.c.
#define _HTTP_KEEP_ALIVE

keep connection alive

Examples:
HTTPdynamic.c, HTTPjava.c, and HTTPsimple.c.
#define _HTTP_CLOSE_CONNECTION

close connection

Examples:
HTTPdynamic.c, HTTPjava.c, and HTTPsimple.c.
#define _HTTP_GET

HTTP method GET

Examples:
HTTPdynamic.c, HTTPjava.c, and HTTPsimple.c.
#define _HTTP_HEAD

HTTP method HEAD

#define _HTTP_POST

HTTP method POST

#define _HTTP_WS

HTTP websockets

#define _HTTP_UNKNOWN

HTTP method unknown

Examples:
HTTPdynamic.c, HTTPjava.c, and HTTPsimple.c.
#define _HTTP_LISTENING   0
#define _HTTP_ESTABLISHED   1
#define HTTP_MAX_ARG   100

arguement limit

#define HTTP_LINE_LENGTH   500

maximum HTTP line length