#
53b4dfe4 |
| 24-May-2024 |
Viktor Szakats |
examples: delete unused includes Delete a bunch of unnecessary-looking headers from some examples. This is known to be tricky on AIX (perhaps also in other less-tested envs). Le
examples: delete unused includes Delete a bunch of unnecessary-looking headers from some examples. This is known to be tricky on AIX (perhaps also in other less-tested envs). Let me know if any of this looks incorrect or outright fails on some systems. Follow-up to d4b85890555388bec212b75f47a5c1a48705b156 #13771 Closes #13785
show more ...
|
#
d4b85890 |
| 24-May-2024 |
Viktor Szakats |
examples: fix compiling with MSVC - `websocket.c`: use `Sleep()` on Windows. `sleep()` and `unistd.h` are not available in MSVC. - `http2-upload.c`: use local `gettimeofday()`
examples: fix compiling with MSVC - `websocket.c`: use `Sleep()` on Windows. `sleep()` and `unistd.h` are not available in MSVC. - `http2-upload.c`: use local `gettimeofday()` implementation when compiled with MSVC. (Alternate solution is to disable the trace function for MSVC.) Public domain code copied and adapted from libssh2: https://github.com/libssh2/libssh2/blob/e973493f992313b3be73f51d3f7ca6d52e288558/src/misc.c#L719-L743 - silence compiler warning for deprecated `inet_addr()`. Also drop duplicate winsock2 include. ``` curl\docs\examples\externalsocket.c(125,32): error C2220: the following warning is treated as an error [curl\bld\docs\examples\curl-example-externalsocket.vcxproj] curl\docs\examples\externalsocket.c(125,32): warning C4996: 'inet_addr': Use inet_pton() or InetPton() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings [curl\bld\docs\examples\curl-example-e ``` Ref: https://github.com/curl/curl/actions/runs/9227337318/job/25389073450#step:4:95 - silence an MSVC compiler warning. This is in conflict with `checksrc` rules, so silence the rule in favour of the warning-free C syntax. ``` curl\docs\examples\multi-legacy.c(152,1): error C2220: the following warning is treated as an error [curl\bld\docs\examples\curl-example-multi-legacy.vcxproj] curl\docs\examples\multi-legacy.c(152,1): warning C4706: assignment within conditional expression [curl\bld\docs\examples\curl-example-multi-legacy.vcxproj] ``` Ref: https://github.com/curl/curl/actions/runs/9227337318/job/25389073450#step:4:226 - do not use `sys/time.h` and `unistd.h` in Windows builds. Some of these includes look unnecessary. Subject to another PR. Cherry-picked from #13766 Closes #13771
show more ...
|
#
f540e43b |
| 27-Feb-2024 |
Daniel Stenberg |
examples: use present tense in comments remove "will" and some other word fixes Closes #13003
|
#
2bc1d775 |
| 02-Jan-2023 |
Daniel Stenberg |
copyright: update all copyright lines and remove year ranges - they are mostly pointless in all major jurisdictions - many big corporations and projects already don't use them - save
copyright: update all copyright lines and remove year ranges - they are mostly pointless in all major jurisdictions - many big corporations and projects already don't use them - saves us from pointless churn - git keeps history for us - the year range is kept in COPYING checksrc is updated to allow non-year using copyright statements Closes #10205
show more ...
|
#
4484270a |
| 26-Oct-2022 |
Ayesh Karunaratne |
misc: typo and grammar fixes - Replace `Github` with `GitHub`. - Replace `windows` with `Windows` - Replace `advice` with `advise` where a verb is used. - A few fixes on removing
misc: typo and grammar fixes - Replace `Github` with `GitHub`. - Replace `windows` with `Windows` - Replace `advice` with `advise` where a verb is used. - A few fixes on removing repeated words. - Replace `a HTTP` with `an HTTP` Closes #9802
show more ...
|
#
ad9bc597 |
| 17-May-2022 |
max.mehl |
copyright: make repository REUSE compliant Add licensing and copyright information for all files in this repository. This either happens in the file itself as a comment header or in the
copyright: make repository REUSE compliant Add licensing and copyright information for all files in this repository. This either happens in the file itself as a comment header or in the file `.reuse/dep5`. This commit also adds a Github workflow to check pull requests and adapts copyright.pl to the changes. Closes #8869
show more ...
|
#
e1b04106 |
| 30-Dec-2021 |
Daniel Stenberg |
examples/multi-single.c: remove WAITMS() As it isn't used. Reported-by: Melroy van den Berg Fixes #8200 Closes #8201
|
#
a28464ae |
| 31-Oct-2021 |
Daniel Stenberg |
docs: reduce/avoid English contractions You're => You are Hasn't => Has not Doesn't => Does not Don't => Do not You'll => You will etc Closes #7930
|
#
1026b36e |
| 07-Jul-2021 |
Daniel Stenberg |
examples/multi-single: fix scan-build warning warning: Value stored to 'mc' during its initialization is never read Follow-up to ae8e11ed5fd2ce Closes #7360
|
#
ae8e11ed |
| 06-Jul-2021 |
Daniel Stenberg |
docs/examples: use curl_multi_poll() in multi examples 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 c
docs/examples: use curl_multi_poll() in multi examples 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
show more ...
|
Revision tags: curl-7_76_1, curl-7_76_0, curl-7_75_0 |
|
#
a6d20b89 |
| 30-Dec-2020 |
Daniel Stenberg |
cleanup: fix two empty expression statement has no effect Follow-up to 26e46617b9
|
Revision tags: curl-7_74_0 |
|
#
ac0a88fd |
| 05-Nov-2020 |
Daniel Stenberg |
copyright: fix year ranges Follow-up from 4d2f8006777
|
#
4d2f8006 |
| 04-Nov-2020 |
Daniel Stenberg |
curl.se: new home Closes #6172
|
Revision tags: curl-7_73_0, tiny-curl-7_72_0, curl-7_72_0, curl-7_71_1, curl-7_71_0, curl-7_70_0, curl-7_69_1, curl-7_69_0, curl-7_68_0, curl-7_67_0, curl-7_66_0, curl-7_65_3, curl-7_65_2, curl-7_65_1, curl-7_65_0, curl-7_64_1, curl-7_64_0, curl-7_63_0, curl-7_62_0 |
|
#
efc696a2 |
| 23-Sep-2018 |
Viktor Szakats |
docs/examples: URL updates - also update two URLs outside of docs/examples - fix spelling of filename persistant.c - fix three long lines that started failing checksrc.pl Cl
docs/examples: URL updates - 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
show more ...
|
#
1d173f34 |
| 07-Sep-2018 |
Kamil Dudka |
docs/examples: do not wait when no transfers are running Closes #2948
|
Revision tags: curl-7_61_1, curl-7_61_0, curl-7_60_0, curl-7_59_0, curl-7_58_0, curl-7_57_0, curl-7_56_1, curl-7_56_0, curl-7_55_1, curl-7_55_0, curl-7_54_1, curl-7_54_0, curl-7_53_1, curl-7_53_0, curl-7_52_1, curl-7_52_0, curl-7_51_0, curl-7_50_3, curl-7_50_2, curl-7_50_1, curl-7_50_0, curl-7_49_1, curl-7_49_0, curl-7_48_0 |
|
#
3a6563d6 |
| 11-Feb-2016 |
Daniel Stenberg |
examples: adhere to curl code style 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 o
examples: adhere to curl code style 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.
show more ...
|
Revision tags: curl-7_47_1 |
|
#
4af40b36 |
| 02-Feb-2016 |
Daniel Stenberg |
URLs: change all http:// URLs to https://
|
Revision tags: curl-7_47_0, curl-7_46_0, curl-7_45_0, curl-7_44_0 |
|
#
8f0178a5 |
| 11-Jul-2015 |
Jay Satiro |
examples: Fix typo in multi-single.c
|
#
c00b18d5 |
| 01-Jul-2015 |
Daniel Stenberg |
examples: provide <DESC> sections
|
Revision tags: curl-7_43_0 |
|
#
56b7663f |
| 08-Jun-2015 |
Ville Skyttä |
docs: Spelling fixes
|
Revision tags: curl-7_42_1, curl-7_42_0, curl-7_41_0, curl-7_40_0 |
|
#
bc860548 |
| 25-Nov-2014 |
Daniel Stenberg |
multi-single.c: switch to use curl_multi_wait Makes the example much easier and straight-forward!
|
#
cb13fad7 |
| 17-Nov-2014 |
Jay Satiro |
examples: Wait recommended 100ms when no file descriptors are ready Prior to this change when no file descriptors were ready on platforms other than Windows the multi examples would slee
examples: Wait recommended 100ms when no file descriptors are ready 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
show more ...
|
#
a607f8a2 |
| 14-Nov-2014 |
Jay Satiro |
examples: Don't call select() to sleep on windows Windows does not support using select() for sleeping without a dummy socket. Instead use Windows' Sleep() and sleep for 100ms which is t
examples: Don't call select() to sleep on windows 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
show more ...
|
Revision tags: curl-7_39_0, curl-7_38_0, curl-7_37_1, curl-7_37_0, curl-7_36_0, curl-7_35_0, curl-7_34_0, curl-7_33_0, curl-7_32_0, curl-7_31_0, curl-7_30_0 |
|
#
247b291b |
| 05-Apr-2013 |
Kamil Dudka |
examples/multi-single.c: fix the order of destructions ... so that it adheres to the API documentation. Reported by: Tomas Mlcoch
|
Revision tags: curl-7_29_0, curl-7_28_1, curl-7_28_0, curl-7_27_0 |
|
#
4c070de4 |
| 23-Jul-2012 |
Dave Reisner |
examples: use do/while loop for multi examples 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.
examples: use do/while loop for multi examples 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.
show more ...
|