In other words, do another call to tcp_new() when you want to reconnect from tcp_close() in tcp.c:
* Connection pcbs are freed if not yet connected and may not be referenced * any more. If a connection is established (at least SYN received or in * a closing state), the connection is closed, and put in a closing state. * * The pcb is then automatically freed in tcp_slowtmr(). It is therefore** ** * unsafe to reference it (unless an error is returned).*
_______________________________________________ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users