summaryrefslogtreecommitdiff
path: root/docs/examples/sendrecv.c
Commit message (Collapse)AuthorAgeFilesLines
* code style: use spaces around equals signsDaniel Stenberg2017-09-111-2/+2
|
* sendrecv: fix MinGW-w64 warningMarcel Raad2017-05-071-1/+1
| | | | | | | The first argument to select is an int, while curl_socket_t is unsigned long long when using WinSock. It's ignored anyway [1]. [1] https://msdn.microsoft.com/en-us/library/windows/desktop/ms740141.aspx
* curl_easy_recv: Improve documentation and example programMichael Kaufmann2016-12-181-35/+56
| | | | | | | | | | | Follow-up to 82245ea: Fix the example program sendrecv.c (handle CURLE_AGAIN, handle incomplete send). Improve the documentation for curl_easy_recv() and curl_easy_send(). Reviewed-by: Frank Meier Assisted-by: Jay Satiro See https://github.com/curl/curl/pull/1134
* examples: fix some compiler warningsDaniel Stenberg2016-02-111-1/+1
|
* examples: adhere to curl code styleDaniel Stenberg2016-02-111-14/+7
| | | | | | | | | | 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: added descriptionsDaniel Stenberg2016-01-041-2/+13
|
* examples: fix compiler warningsYang Tse2012-04-131-3/+5
|
* Added a workaround for printing size_t.Guenter Knauf2011-09-231-1/+2
|
* 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: socket type cleanupDaniel Stenberg2010-12-181-5/+10
|
* examples: use example.com in example URLsDaniel Stenberg2010-10-051-2/+2
|
* remove the CVSish $Id$ linesDaniel Stenberg2010-03-241-1/+0
|
* strerror() => curl_easy_strerror()Daniel Stenberg2009-11-021-2/+2
|
* Fixed unused variable warningDan Fandrich2008-08-141-1/+0
|
* - Introducing curl_easy_send() and curl_easy_recv(). They can be used to sendDaniel Stenberg2008-05-121-0/+117
and receive data over a connection previously setup with curl_easy_perform() and its CURLOPT_CONNECT_ONLY option. The sendrecv.c example was added to show how they can be used.