]> granicus.if.org Git - curl/commit
examples/externalsocket: add missing close socket calls
authorAndre Guibert de Bruet <andygui@gmail.com>
Mon, 11 Mar 2019 03:15:15 +0000 (23:15 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Tue, 12 Mar 2019 03:02:54 +0000 (23:02 -0400)
commit57c70767930c0f0cbf93c56c28442cf34eb6af07
tree6f79d8fbc785174ba1211e27c0514ccd7efe2498
parent0bb56392d4d077c5d62c63831536354a29d59f26
examples/externalsocket: add missing close socket calls

.. 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
docs/examples/externalsocket.c