aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/externalsocket.c
AgeCommit message (Collapse)Author
2019-11-02copyrights: update all copyright notices to 2019 on files changed this yearVilhelm Prytz
Closes #4547
2019-03-11examples/externalsocket: add missing close socket callsAndre Guibert de Bruet
.. and for Windows also call WSACleanup since we call WSAStartup. The example is to demonstrate handling the socket independently of libcurl. In this case libcurl is not responsible for creating, opening or closing the socket, it is handled by the application (our example). Fixes https://github.com/curl/curl/pull/3663
2017-05-31examples/externalsocket.c: s/closesocket/closecbDaniel Stenberg
... since closesocket is a function in WinSock. Reported-by: Marcel Raad Bug: https://github.com/curl/curl/commit/55fcb8485914700132fd1854c9509b66c955efbe#co mmitcomment-22347818
2017-05-31example/externalsocket.c: make it use CLOSESOCKETFUNCTION tooDaniel Stenberg
2017-03-26spelling fixesklemens
Closes #1356
2016-12-14checksrc: warn for assignments within if() expressionsDaniel Stenberg
... they're already frowned upon in our source code style guide, this now enforces the rule harder.
2016-04-03docs/examples: remove spurious white spaces all overDaniel Stenberg
... to please the new, slightly picker, checksrc.pl
2016-02-17externalsocket.c: fix compiler warning for fwrite return typeDaniel Stenberg
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
2015-06-18examples: more descriptionsDaniel Stenberg
2014-12-26code/docs: Use Unix rather than UNIX to avoid use of the trademarkSteve Holme
Use Unix when generically writing about Unix based systems as UNIX is the trademark and should only be used in a particular product's name.
2012-12-10examples/externalsocket.c: fix SunPro compilation issueYang Tse
2012-04-13examples: fix compiler warningsYang Tse
2011-12-06Added some include files in a couple of example programsDan Fandrich
This improves portability of the examples. This patch was submitted to the OpenBSD ports collection by naddy.
2011-09-21Fixed sample to compile for Windows platform.Guenter Knauf
2011-08-23externalsocket.c: new exampleDaniel Stenberg