summaryrefslogtreecommitdiff
path: root/docs/examples/multi-app.c
Commit message (Collapse)AuthorAgeFilesLines
* code style: use spaces around plusesDaniel Stenberg2017-09-111-1/+1
|
* code style: use spaces around equals signsDaniel Stenberg2017-09-111-5/+5
|
* checksrc: stricter no-space-before-paren enforcementDaniel Stenberg2016-12-131-1/+1
| | | | In order to make the code style more uniform everywhere
* examples: adhere to curl code styleDaniel Stenberg2016-02-111-11/+10
| | | | | | | | | | 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.
* URLs: change all http:// URLs to https://Daniel Stenberg2016-02-031-1/+1
|
* docs/examples/multi-app.c: fix bad desc formattingDaniel Stenberg2016-01-041-2/+2
|
* examples: added descriptionsDaniel Stenberg2016-01-041-2/+6
|
* examples: Wait recommended 100ms when no file descriptors are readyJay Satiro2014-11-191-8/+12
| | | | | | | | | 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
* examples: Don't call select() to sleep on windowsJay Satiro2014-11-151-7/+24
| | | | | | | | | | | | 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
* examples: use do/while loop for multi examplesDave Reisner2012-08-271-2/+2
| | | | | | | | 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.
* sources: update source headersDaniel Stenberg2011-03-101-3/+15
| | | | | | 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.
* examples: fix compiler warningsDaniel Stenberg2010-12-171-1/+1
|
* multi use: call multi_perform even on select() timeoutsDaniel Stenberg2010-11-041-6/+2
|
* examples: use example.com in example URLsDaniel Stenberg2010-10-051-2/+2
|
* multi & hiper examples: updates and cleanupsDirk Manske2010-09-301-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | 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
* examples: add curl_multi_timeoutConstantine Sapuntzakis2010-07-141-0/+11
| | | | | Make the multi-interface using examples use curl_multi_timeout to properly educate users how to do things.
* test536: do not fail with threaded DNS resolverKamil Dudka2010-04-241-3/+5
| | | | Also tweaked comments in certain examples using curl_multi_fdset().
* remove the CVSish $Id$ linesDaniel Stenberg2010-03-241-1/+0
|
* Yun Fu pointed out a flaw in the loop that checks handles, and I indentedDaniel Stenberg2010-01-211-14/+17
| | | | the code more curl-style
* Fixed a surprising number of example programs that were passing int argumentsDan Fandrich2008-05-221-1/+1
| | | | to curl_easy_setopt instead of long.
* Fixed some compile warnings and errors and improved portability in theDan Fandrich2007-07-121-1/+1
| | | | | | examples. Removed ftp3rdparty.c since libcurl doesn't support 3rd party FTP transfers any longer.
* Added comments about checking return code and the maxfd counterDaniel Stenberg2006-10-131-0/+4
|
* *** empty log message ***Gisle Vanem2004-10-061-2/+2
|
* removed tabs and trailing whitespace from sourceDaniel Stenberg2004-10-061-12/+12
|
* Henrik Storner's rewrite that includes a nice usage of curl_multi_info_read()Daniel Stenberg2003-08-281-11/+40
|
* fixDaniel Stenberg2003-01-091-1/+2
|
* fixed include and added headerDaniel Stenberg2002-03-191-5/+11
|
* multi interface using examplesDaniel Stenberg2002-03-041-0/+92