summaryrefslogtreecommitdiff
path: root/docs/examples/multi-debugcallback.c
Commit message (Collapse)AuthorAgeFilesLines
* docs: reduce/avoid English contractionsDaniel Stenberg2021-11-071-1/+1
| | | | | | | | | | | You're => You are Hasn't => Has not Doesn't => Does not Don't => Do not You'll => You will etc Closes #7930
* docs/examples: use curl_multi_poll() in multi examplesDaniel Stenberg2021-07-071-72/+8
| | | | | | | | | | | | The API is soon two years old and deserves being shown as the primary way to drive multi code as it makes it much easier to write code. multi-poll: removed multi-legacy: add to show how we did multi API use before curl_multi_wait/poll. Closes #7352
* copyright: fix year rangesDaniel Stenberg2020-11-051-1/+1
| | | | Follow-up from 4d2f8006777
* curl.se: new homeDaniel Stenberg2020-11-041-1/+1
| | | | Closes #6172
* docs/examples: URL updatesViktor Szakats2018-09-231-2/+2
| | | | | | | | - 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
* docs/examples: do not wait when no transfers are runningKamil Dudka2018-09-101-3/+3
| | | | Closes #2948
* examples: fix -Wformat warningsMarcel Raad2018-07-091-2/+2
| | | | | | | | | When size_t is not a typedef for unsigned long (as usually the case on Windows), GCC emits -Wformat warnings when using lu and lx format specifiers with size_t. Silence them with explicit casts to unsigned long. Closes https://github.com/curl/curl/pull/2721
* examples: Fix format specifiersRikard Falkeborn2018-05-141-3/+3
| | | | Closes #2561
* code style: use spaces around plusesDaniel Stenberg2017-09-111-10/+12
|
* code style: use spaces around equals signsDaniel Stenberg2017-09-111-6/+6
|
* examples: fix Wimplicit-fallthrough warningsMarcel Raad2017-05-241-0/+1
| | | | This is contained in -Wextra with GCC 7.
* 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-5/+4
| | | | | | | | | | 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
|
* examples: provide <DESC> sectionsDaniel Stenberg2015-07-011-2/+5
|
* 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-4/+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-3/+4
|
* examples: use example.com in example URLsDaniel Stenberg2010-10-051-1/+1
|
* 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
|
* docs/example patches for VMSYang Tse2009-06-051-3/+4
|
* Fixed a surprising number of example programs that were passing int argumentsDan Fandrich2008-05-221-1/+1
| | | | to curl_easy_setopt instead of long.
* Michal Marek's cleanup of how curl_easy_setopt() is used in examples andDaniel Stenberg2008-02-271-1/+1
| | | | test code. Thanks to his curl_easy_setopt() typechecker work...
* Added comments about checking return code and the maxfd counterDaniel Stenberg2006-10-131-0/+4
|
* multi interface, debug callbackDaniel Stenberg2004-05-241-0/+178