#include "lwip/debug.h"
#include "lwip/stats.h"
#include <net/httpd.h>
#include "lwip/tcp.h"
#include <net/fs.h>
#include <util/printf-stdarg.h>
Data Structures | |
struct | http_state |
Functions | |
static void | close_conn (struct tcp_pcb *pcb, struct http_state *hs) |
static void | conn_err (void *arg, err_t err) |
static err_t | http_accept (void *arg, struct tcp_pcb *pcb, err_t err) |
static err_t | http_poll (void *arg, struct tcp_pcb *pcb) |
static err_t | http_recv (void *arg, struct tcp_pcb *pcb, struct pbuf *p, err_t err) |
static err_t | http_sent (void *arg, struct tcp_pcb *pcb, u16_t len) |
err_t | httpd_start (void) |
void | httpd_stop (void) |
static void | send_data (struct tcp_pcb *pcb, struct http_state *hs) |
Variables | |
struct tcp_pcb * | pcb = NULL |
|
static |
References mem_free(), and NULL.
Referenced by http_recv(), and http_sent().
|
static |
References arg, LWIP_UNUSED_ARG, and mem_free().
Referenced by http_accept().
References conn_err(), ERR_MEM, ERR_OK, http_state::file, http_poll(), http_recv(), http_state::left, LWIP_UNUSED_ARG, mem_malloc(), NULL, printk(), and http_state::retries.
Referenced by httpd_start().
|
static |
References arg, ERR_ABRT, ERR_OK, NULL, http_state::retries, and send_data().
Referenced by http_accept().
References arg, close_conn(), fs_file::data, data, ERR_OK, http_state::file, fs_open(), http_sent(), i, http_state::left, fs_file::len, pbuf::len, NULL, pbuf::payload, pbuf_free(), printk(), send_data(), and pbuf::tot_len.
Referenced by http_accept().
References arg, close_conn(), ERR_OK, http_state::left, LWIP_UNUSED_ARG, http_state::retries, and send_data().
Referenced by http_recv().
err_t httpd_start | ( | void | ) |
References ERR_MEM, ERR_OK, http_accept(), NULL, and pcb.
Referenced by ip_status_cb().
void httpd_stop | ( | void | ) |
References pcb.
Referenced by ip_status_cb().
|
static |
References ERR_MEM, ERR_OK, http_state::file, and http_state::left.
Referenced by http_poll(), http_recv(), http_sent(), and usr_mcps_data_ind().
struct tcp_pcb* pcb = NULL |
Referenced by cmd_ping(), httpd_start(), httpd_stop(), and netif_set_ipaddr().