Altera_Forum
Honored Contributor
21 years agoLWIP standalong server bug?
Hi,
Examining the example lwip_server, in particular httpd.c. When tcp_close is called the pcb is deallocated, so surely a tcp_new,bind must be performed again? in the LWIP source tcp.c you can see the memp_free? is there any good documentation for the LWIP rawapi, the little rawapi.txt file does not talk about pbuf management - such as is done within http_recv() for example? is the pbuf_free() necessary? and should the tcp_recved(pcb, p->tot_len) not actually be tcp_recved(pcb,p->len) ? tot_len is the sze of the buffer and all other chained ones? (or so the LWIP source comments say?) Are there any other examples of LWIP rawapi apps? Thanks! http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/huh.gif Thanks!