lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] LwIP 1.41 select does not return ?


From: Noam Weissman
Subject: Re: [lwip-users] LwIP 1.41 select does not return ?
Date: Wed, 31 May 2017 13:10:04 +0000

Hi Tim,


RAW API is used in multi threaded application with one limitation. All RAW API handling

must be in the same context as the TCP stack. This limitation is kept and works fine.


I am running a HTTP server + a TCP server both use the RAW API + a WSS client written

with the socket API and have ZERO issues.


In my original question I am talking on something else. I have no problems turning off the

RAW API, comment the use of my TCP server and I will be very surprised if that will make

any difference. I will test that tomorrow :-)


Thanks,

Noam.


From: lwip-users <lwip-users-bounces+address@hidden> on behalf of Tim Cussins <address@hidden>
Sent: Wednesday, May 31, 2017 1:43 PM
To: address@hidden
Subject: Re: [lwip-users] LwIP 1.41 select does not return ?
 
Hi Noam,

On Wed, May 31, 2017, at 11:11 AM, Noam Weissman wrote:

> I am using a base project that is used for testing. This base project
> uses FreeRTOS 8.01 + LwIP 1.41
> +  a few modules that work just fine. The base project has a DHCP client
> and a TCP server (Raw API)
> that work just fine.
>
>
> I have enabled sockets and netcon in lwipopts.h ... in general it seems
> to load properly and run.

> My own TCP server that listens on port 23 and the rest of the system
> works just fine
>
>
> Any ideas what did I miss or what should I check ?
>

Just a quick check: The raw API is not meant to be used in a
multi-threaded system. Is your working TCP server using this API? If so,
I expect your TCP server would work, but your calls to the netconn API
(or sockets, which uses netconn under the hood) would probably dead-end
in the way you're seeing.

Have a look at the first couple of paragraphs here:

http://lwip.wikia.com/wiki/Netconn_API


HTH,
Tim

_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users


reply via email to

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