Atmel Software Framework

httpd.c File Reference
#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 void close_conn ( struct tcp_pcb *  pcb,
struct http_state hs 
)
static

References mem_free(), and NULL.

Referenced by http_recv(), and http_sent().

static void conn_err ( void *  arg,
err_t  err 
)
static

References arg, LWIP_UNUSED_ARG, and mem_free().

Referenced by http_accept().

static err_t http_accept ( void *  arg,
struct tcp_pcb *  pcb,
err_t  err 
)
static
static err_t http_poll ( void *  arg,
struct tcp_pcb *  pcb 
)
static

References arg, ERR_ABRT, ERR_OK, NULL, http_state::retries, and send_data().

Referenced by http_accept().

static err_t http_recv ( void *  arg,
struct tcp_pcb *  pcb,
struct pbuf p,
err_t  err 
)
static
static err_t http_sent ( void *  arg,
struct tcp_pcb *  pcb,
u16_t  len 
)
static
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 void send_data ( struct tcp_pcb *  pcb,
struct http_state hs 
)
static

struct tcp_pcb* pcb = NULL