curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: help me improve behavior on Windows?

From: René Berber via curl-library <>
Date: Sun, 6 Oct 2019 14:14:30 -0500

On 10/6/2019 3:59 AM, Daniel Stenberg via curl-library wrote:

> That change was done using socketpair() and therefor it unfortunately
> only works on linux and unix-like systems.
> To bring that same improvement and benefit to the Windows side of
> libcurl, I've written a custom socketpair() implementation for Windows
> that can be used on that platform to offer the same functionality.

There are implementations for Windows in
 * libevent (evutil.c: evutil_ersatz_socketpair()), and in
 * DBUS (dbus-sysdeps-win.c: _dbus_socketpair()).

Both work fine under Windows (from W-95 to the present).

R. Berber
Received on 2019-10-06