cURL / Mailing Lists / curl-library / Single Mail

curl-library

libcURL multi interface - Restrict to One TCP connection

From: RaJ M <smrajagopal_at_gmail.com>
Date: Thu, 29 Jan 2015 22:29:06 -0600

I am using curl_multi_wait() + curl_multi_perform() to perform
continuous HTTP transfers. (All transfers to a single HOST:PORT) That
creates multiple TCP connections. (as it should/can)

Does libcURL multi interface allow user to configure it to restrict to
strictly use only one TCP connection across easy handles being added ?
If it does, are there any example programs ?

If it doesn't, is it inappropriate to just set options via
curl_easy_setopt (including CONNECT_ONLY) and get the libcURL socket
using CURLINFO_LASTSOCKET and do own send(), recv() instead of
curl_easy_perform to avoid blocking call ?

-- 
Thanks
Raja Gopal M
smrajagopal_at_gmail.com
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2015-01-30