curl / Mailing Lists / curl-library / Single Mail

curl-library

Guidance on curl-multi

From: <jon_at_keyonsoft.com>
Date: Sat, 5 May 2018 11:07:49 -0400

Hello CURL team,

 

I'm looking for guidance on what methods are best to use in my case. I have
a Windows (MSVC) application and I'm just looking to establish a
non-blocking threaded approach to sending simple POSTFIELDS:

 

To date I've been using the curl-easy blocking method as such:

 

curl_easy_setopt(curl, CURLOPT_URL, http://www.xyz.com/xyz");

curl_easy_setopt(curl, CURLOPT_POSTFIELDS, "sample=12&sample2=14");

curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, curl_callback_func);

 

I went through the examples and the saw a few that have "sleep" functions in
them which would block. As I run with Windows TIMER functions I'm picturing
removing the for loops and having the CURL_MULTI_PERFORM function occur in
the OnTimer callback. Does CURL_MULTI_PERFORM non-block and return back
immediately?

 

Thanks,

Jon

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2018-05-05