httpd.h File Reference

#include "lwip/err.h"

Go to the source code of this file.

Functions

err_t httpd_start (void)
void httpd_stop (void)


Function Documentation

err_t httpd_start ( void   ) 

Definition at line 240 of file httpd.c.

References http_accept(), and pcb.

Referenced by ip_status_cb().

00241 {
00242     pcb = tcp_new();
00243     if (pcb == NULL)
00244         return ERR_MEM;
00245     tcp_bind(pcb, IP_ADDR_ANY, 80);
00246     pcb = tcp_listen(pcb);
00247     tcp_accept(pcb, http_accept);
00248     return ERR_OK;
00249 }

void httpd_stop ( void   ) 

Definition at line 251 of file httpd.c.

References pcb.

Referenced by ip_status_cb().

00252 {
00253     if (pcb)
00254         tcp_close(pcb);
00255 }


Generated on Fri Feb 19 02:24:08 2010 for AVR32 - H&D by  doxygen 1.5.5