On Mon, 2009-08-10 at 13:24 -0400, Ben Hastings wrote:
> static err_t http_recv_callback(void *arg, struct tcp_pcb *pcb, struct
> pbuf *p, err_t err) {
> struct web_t *webdata = arg;
> if (err == ERR_OK) {
> if (p == NULL) {
> if (pcb->state == CLOSE_WAIT) {
> tcp_close(pcb); //received FIN, need to send FIN
> }
I don't think you need that if () {} around tcp_close(), although it's
probably OK.
Kieran
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users