cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: async socket help

From: <koettermarkus_at_gmx.de>
Date: Tue, 02 Nov 2010 10:19:41 +0100

john skaller wrote:
> Hi, I am wondering if any devs here would be willing
> to help me figure out how to properly close an O_NONBLOCK socket.

shutdown(socket, SHUT_RD);
Once the socket is readable again, the outbuf should be flushed and you
can close it.

Markus
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-11-02