|Subject:||[lwip-users] tcp_err and tcp_close|
|Date:||Thu, 20 Dec 2018 13:15:05 +0000|
Please excuse me if I’m asking a silly question, but I’m now clear about the state of the PCB when tcp_err is called.
The documentation states: The error callback function does not get the pcb passed to it as a parameter since the pcb may already have been deallocated.
What I have a problem with is the may bit,
Is the pcb deallocated or not?
I know from experience that if tcp_err is called because tcp_connect failed then the PCB is deallocated and should NOT be closed by my code.
But is this always the case?
|[Prev in Thread]||Current Thread||[Next in Thread]|