lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] lwIP in multi-thread environment mixed with raw-api


From: Kieran Mansley
Subject: Re: [lwip-users] lwIP in multi-thread environment mixed with raw-api
Date: Fri, 05 Jun 2009 16:18:26 +0100

On Fri, 2009-06-05 at 10:48 -0400, Mark Phillips wrote:

> The application works great for multiple servers (listeners), and also 
> for a single client (with no servers).  But, whenever I try to mix the 
> two, either the whole process stops (if I prevent multiple requests to 
> be pending simultaneously) or I get nasty memory-corruption/segfaults 
> (if I DO allow multiple requests).

If you were using the BSD sockets layer, the solution would be to use
the select() function to wait for completion of connect operations
without blocking, while also servicing existing connections.  There is
no select operation at the netconn layer, but as the sockets layer
implements select using the netconn layer functionality, you should be
able to look at what it does and do something similar.

Kieran





reply via email to

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