lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Deatach LWIP Webserver


From: Kieran Mansley
Subject: Re: [lwip-users] Deatach LWIP Webserver
Date: Mon, 18 Oct 2010 17:35:53 +0100

On Mon, 2010-10-18 at 18:30 +0200, Luis Rossi wrote:
> And how standard is the lwip compared to BSD sockets, i just looked at
> the
> file and functions and as example the accept function does not look
> alike
> the BSD accept funtion. Or am i  missing something?

To use accept as an example: In sockets you would do something like call
accept() to wait for an accepted socket.  It would block until a
connection arrived.  In the lwIP raw API there is no way to wait for an
accepted socket.  You just set the callback function to be called when a
new socket arrives using the tcp_accept() function.  You application
therefore needs a very different structure as it is event driven rather
than synchronous.

Have a read of lwip/doc/rawapi.txt for more detail and example.

Kieran




reply via email to

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