lwIP  2.0.2
Lightweight IP stack
httpd.c File Reference
#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)
 

Detailed Description

LWIP HTTP server implementation

Macro Definition Documentation

◆ HTTP_IS_DATA_VOLATILE

#define HTTP_IS_DATA_VOLATILE (   hs)
Value:
(((hs->file != NULL) && (hs->handle != NULL) && (hs->file == \
(const char*)hs->handle->data + hs->handle->len - hs->left)) \
? 0 : TCP_WRITE_FLAG_COPY)

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

◆ HTTP_IS_HDR_VOLATILE

#define HTTP_IS_HDR_VOLATILE (   hs,
  ptr 
)    0

Default: headers are sent from ROM

◆ MIN_REQ_LEN

#define MIN_REQ_LEN   7

Minimum length for a valid HTTP/0.9 request: "GET /\r\n" -> 7 bytes