curl-library
Re: Connecting pipes to curl
Date: Sun, 17 Aug 2014 14:51:15 +0200
Am 2014-08-14 um 11:50 schrieb Daniel Stenberg:
> On Wed, 13 Aug 2014, Bernhard Reiter wrote:
>
>> I'm trying to connect a tunnel to (lib)curl. That tunnel is basically
>> a child process with one in and one out pipe (think ssh'ing into an
>> IMAP server and starting imapd there). If I had a socket, I could use
>> http://curl.haxx.se/libcurl/c/externalsocket.html -- but
>> unfortunately, I only have pipes.
>>
>> I believe what I'm looking for has been discussed before at
>> http://curl.haxx.se/mail/lib-2011-05/0102.html . Is there any
>> progress on such a feature? (Or does anyone have a workaround?)
>
> We have not come any closer to a solution for that.
>
I've asked on SO [1], but I'm not sure any of the suggestions can be
used with curl.
Elsewhere [2], someone suggested using socketpair() insteadof pipe()
when setting up the tunnel child process. Is it possible to pass an
AF_LOCAL socket (instead of an AF_INET one) to libcurl?
[1]
http://stackoverflow.com/questions/25306264/connect-in-and-out-pipes-to-network-socket
[2] http://www.mail-archive.com/git@vger.kernel.org/msg56873.html
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-08-17