summaryrefslogtreecommitdiff
path: root/docs/examples/asiohiper.cpp
Commit message (Collapse)AuthorAgeFilesLines
* asiohiper.cpp / evhiperfifo.c: deal with negative timerfunction inputDaniel Stenberg2017-05-191-1/+1
| | | | | | | That means delete the timer. Reported-by: Michael Kaufmann Ref: #1253
* asiohiper: make sure socket is open in event_cbEdward Kimmel2017-03-231-8/+14
| | | | | | Send curl_socket_t to event_cb and make sure it hasn't been closed yet. Closes https://github.com/curl/curl/pull/1318
* examples: make the C++ examples follow our code style tooDaniel Stenberg2017-01-081-83/+64
| | | | At least mostly, not counting // comments.
* asiohiper: improved socket handlingAulddays2017-01-081-27/+59
| | | | | | | | | | libcurl requires CURLMOPT_SOCKETFUNCTION to KEEP watching socket events and notify back. Modify event_cb() to continue watching events when fired. Fixes #1191 Closes #1192 Fixed-by: Mingliang Zhu
* examples/asiohiper: Avoid function name collision on WindowsGisle Vanem2016-02-061-4/+4
| | | | | | | closesocket => close_socket Winsock already has the former. Bug: https://curl.haxx.se/mail/lib-2016-02/0016.html
* URLs: change all http:// URLs to https://Daniel Stenberg2016-02-031-1/+1
|
* examples: add descriptions with <DESC>Daniel Stenberg2015-06-181-5/+5
| | | | | Using this fixed format for example descriptions, we can generate a better list on the web site.
* asiohiper.cpp: No need to initialise members of ConnInfoSteve Holme2014-12-271-2/+0
| | | | ...as calloc() automatically clears the area of memory with zeros.
* asiohiper.cpp: Updated for curl coding standardsSteve Holme2014-12-271-58/+73
| | | | ...with the exception of the start of block statement curly brackets.
* code/docs: Use correct case for IPv4 and IPv6Steve Holme2014-12-271-2/+2
| | | | | | For consistency, as we seem to have a bit of a mixed bag, changed all instances of ipv4 and ipv6 in comments and documentations to use the correct case.
* examples: Updated asiohiper.cpp to remove connect from opensocketLijo Antony2012-11-251-36/+23
| | | | | | | Blocking connect on the socket has been removed from opensocket callback. opensocket just opens a new socket and gives it back to libcurl and libcurl will take care of the connect. sockopt_callback has also been removed, as it is no longer required.
* examples: Added a c++ example of using multi with boost::asioLijo Antony2012-11-211-0/+467
Added an example for demonstrating the usage of curl multi interface with boost::asio in c++