#include "lwip/err.h"
Go to the source code of this file.
Functions | |
err_t | httpd_start (void) |
void | httpd_stop (void) |
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 | ) |