|
lwIP
2.0.2
Lightweight IP stack
|
#include "lwip/init.h"#include "lwip/apps/httpd.h"#include "lwip/debug.h"#include "lwip/stats.h"#include "lwip/apps/fs.h"#include "httpd_structs.h"#include "lwip/def.h"#include "lwip/ip.h"#include "lwip/tcp.h"#include <string.h>#include <stdlib.h>#include <stdio.h>Macros | |
| #define | MIN_REQ_LEN 7 |
| #define | HTTP_IS_DATA_VOLATILE(hs) |
| #define | HTTP_IS_HDR_VOLATILE(hs, ptr) 0 |
Functions | |
| void | httpd_init (void) |
LWIP HTTP server implementation
| #define HTTP_IS_DATA_VOLATILE | ( | hs | ) |
These defines check whether tcp_write has to copy data or not This was TI's check whether to let TCP copy data or not #define HTTP_IS_DATA_VOLATILE(hs) ((hs->file < (char *)0x20000000) ? 0 : TCP_WRITE_FLAG_COPY)Default: don't copy if the data is sent from file-system directly
| #define HTTP_IS_HDR_VOLATILE | ( | hs, | |
| ptr | |||
| ) | 0 |
Default: headers are sent from ROM
| #define MIN_REQ_LEN 7 |
Minimum length for a valid HTTP/0.9 request: "GET /\r\n" -> 7 bytes