aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/multi-app.c
AgeCommit message (Collapse)Author
2019-11-02copyrights: update all copyright notices to 2019 on files changed this yearVilhelm Prytz
Closes #4547
2019-05-22examples: reduce variable scopesMarcel Raad
Closes https://github.com/curl/curl/pull/3919
2018-09-23docs/examples: URL updatesViktor Szakats
- also update two URLs outside of docs/examples - fix spelling of filename persistant.c - fix three long lines that started failing checksrc.pl Closes https://github.com/curl/curl/pull/3036
2018-09-10docs/examples: do not wait when no transfers are runningKamil Dudka
Closes #2948
2017-09-11code style: use spaces around plusesDaniel Stenberg
2017-09-11code style: use spaces around equals signsDaniel Stenberg
2016-12-13checksrc: stricter no-space-before-paren enforcementDaniel Stenberg
In order to make the code style more uniform everywhere
2016-02-11examples: adhere to curl code styleDaniel Stenberg
All plain C examples now (mostly) adhere to the curl code style. While they are only examples, they had diverted so much and contained all sorts of different mixed code styles by now. Having them use a unified style helps users and readability. Also, as they get copy-and-pasted widely by users, making sure they're clean and nice is a good idea. 573 checksrc warnings were addressed.
2016-02-03URLs: change all http:// URLs to https://Daniel Stenberg
2016-01-04docs/examples/multi-app.c: fix bad desc formattingDaniel Stenberg
2016-01-04examples: added descriptionsDaniel Stenberg
2014-11-19examples: Wait recommended 100ms when no file descriptors are readyJay Satiro
Prior to this change when no file descriptors were ready on platforms other than Windows the multi examples would sleep whatever was in timeout, which may or may not have been less than the minimum recommended value [1] of 100ms. [1]: http://curl.haxx.se/libcurl/c/curl_multi_fdset.html
2014-11-15examples: Don't call select() to sleep on windowsJay Satiro
Windows does not support using select() for sleeping without a dummy socket. Instead use Windows' Sleep() and sleep for 100ms which is the minimum suggested value in the curl_multi_fdset() doc. Prior to this change the multi examples would exit prematurely since select() would error instead of sleeping when called without an fd. Reported-by: Johan Lantz Bug: http://curl.haxx.se/mail/lib-2014-11/0221.html
2012-08-27examples: use do/while loop for multi examplesDave Reisner
It's conceivable that after the first time curl_multi_perform returns, the outvalue still_running will be 0, but work will have been done. This is shown by a workload of small, purely file:// based URLs. Ensure that we always read pending messages off the multi handle by forcing the while loop to run at least once.
2011-03-10sources: update source headersDaniel Stenberg
All C and H files now (should) feature the proper project curl source code header, which includes basic info, a copyright statement and some basic disclaimers.
2010-12-17examples: fix compiler warningsDaniel Stenberg
2010-11-04multi use: call multi_perform even on select() timeoutsDaniel Stenberg
2010-10-05examples: use example.com in example URLsDaniel Stenberg
2010-09-30multi & hiper examples: updates and cleanupsDirk Manske
all multi and hiper examples: * don't loop curl_multi_perform calls, that was <7.20.0 style, currently the exported multi functions will not return CURLM_CALL_MULTI_PERFORM all hiper examples: * renamed check_run_count to check_multi_info * don't compare current running handle count with previous value, this was the wrong way to check for finished requests, simply call curl_multi_info_read * it's also safe to call curl_multi_remove_handle inside the curl_multi_info_read loop. ghiper.c: * replaced curl_multi_socket (that function is marked as obsolete) calls with curl_multi_socket_action calls (as in hiperfifo.c and evhiperfifo.c) ghiper.c and evhiperfifo.c: * be smart as hiperfifo.c, don't do uncessary curl_multi_* calls in new_conn and main
2010-07-14examples: add curl_multi_timeoutConstantine Sapuntzakis
Make the multi-interface using examples use curl_multi_timeout to properly educate users how to do things.
2010-04-24test536: do not fail with threaded DNS resolverKamil Dudka
Also tweaked comments in certain examples using curl_multi_fdset().
2010-03-24remove the CVSish $Id$ linesDaniel Stenberg
2010-01-21Yun Fu pointed out a flaw in the loop that checks handles, and I indentedDaniel Stenberg
the code more curl-style
2008-05-22Fixed a surprising number of example programs that were passing int argumentsDan Fandrich
to curl_easy_setopt instead of long.
2007-07-12Fixed some compile warnings and errors and improved portability in theDan Fandrich
examples. Removed ftp3rdparty.c since libcurl doesn't support 3rd party FTP transfers any longer.
2006-10-13Added comments about checking return code and the maxfd counterDaniel Stenberg
2004-10-06*** empty log message ***Gisle Vanem
2004-10-06removed tabs and trailing whitespace from sourceDaniel Stenberg
2003-08-28Henrik Storner's rewrite that includes a nice usage of curl_multi_info_read()Daniel Stenberg
2003-01-09fixDaniel Stenberg
2002-03-19fixed include and added headerDaniel Stenberg
2002-03-04multi interface using examplesDaniel Stenberg