lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] lwIP-1.3.2 netconn_new-netconn_delete issue


From: Alex2051
Subject: Re: [lwip-users] lwIP-1.3.2 netconn_new-netconn_delete issue
Date: Fri, 28 Oct 2011 08:44:24 -0700 (PDT)

I found some:

In my code I use separate thread for incoming tcp data, so in that time when
I am destroying netconn, in another thread netconn_recv works. And I must
wait for it finished before another netconn been created:
...
netconn_delete(conn);///!!!!!!!!!!!!!!!!!
conn = 0;
vTaskDelay(61000);
conn = netconn_new(NETCONN_TCP);///!!!!!!!!!!!!!!
conn->recv_timeout = 60000;
comm_mode = COMM_WAITREADY;
...

So should I alwais loose this time (in my case 61 seconds) for waiting until
netconn_recv finished with timeout? May be another method of emegency
interrupt of netconn_recv exists?
-- 
View this message in context: 
http://old.nabble.com/lwIP-1.3.2-netconn_new-netconn_delete-issue-tp32738694p32739128.html
Sent from the lwip-users mailing list archive at Nabble.com.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]