[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] exception in the second call to netconn_bind
From: |
David Shmelzer |
Subject: |
[lwip-users] exception in the second call to netconn_bind |
Date: |
Sat, 31 Jan 2009 15:35:34 -0500 |
Thanks for pointing me to the example in lwIP.pdf
I copied the example from the lwIP.pdf verbatim into a test function
that I execute twice. The second time through I get an exception in
netconn_bind().
The exception occurs in the first 'for' loop in tcp_bind().
The cause of the exception is cpcb->next ends up as 0x00000400 instead
of NULL.
for(cpcb = (struct tcp_pcb *)tcp_listen_pcbs.pcbs;
cpcb != NULL; cpcb = cpcb->next) {
That's as far as I've debugged for now.
Any ideas as to where I should look next?
I am using the raw API as well as the netconn API. Is this allowed?
I first open a listening port using the raw API, then attempt to open
and close another listening port using the netconn API as described
above.
-Dave