cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Cross-compiling libcurl for an embedded platform using lwip

From: Gisle Vanem <gvanem_at_broadpark.no>
Date: Tue, 28 Feb 2012 21:34:40 +0100

"Dan Fandrich" <dan_at_coneharvesters.com> wrote:

> curl very much expects a BSD-style socket library. The best bet is to
> write a shim library that calls the LWIP socket functions using the
> standard names so that configure can find them.

lwIP already has this shim built-in.
Ref. src/include/lwip/sockets.h:

#if LWIP_COMPAT_SOCKETS
#define accept(a,b,c) lwip_accept(a,b,c)
#define bind(a,b,c) lwip_bind(a,b,c)
#define shutdown(a,b) lwip_shutdown(a,b)
#define closesocket(s) lwip_close(s)
...

--gv

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-02-28