lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] lwIP Raw API and sockets


From: Kieran Mansley
Subject: Re: [lwip-users] lwIP Raw API and sockets
Date: Thu, 03 Mar 2011 11:17:11 +0000

On Thu, 2011-03-03 at 11:11 +0000, Teckinal Greek wrote:
> 
> Hi,is it possible to mix lwIP Raw API with sockets (I know they are
> pretty much different), such as connecting the Client to the Server
> using Raw API and receiving data from the server using Socket
> programming.

It may be possible (the sockets API will use parts of the raw API
internally for example), but it's not really supported.  You would have
to make sure that you didn't try to access the same connection through
the two APIs, and you'd have to be very careful about ensuring there
weren't two threads active in lwIP at the same time (i.e. you'd have to
synchronise the tcpip_thread with your own application threads, and I'm
not sure this would be easy without modifying lwIP itself).

Kieran




reply via email to

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