cURL / Mailing Lists / curl-library / Single Mail

curl-library

Added callback on socket close

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 18 May 2011 23:09:28 +0200 (CEST)

Hi friends,

I've added CURLOPT_CLOSESOCKETFUNCTION and CURLOPT_CLOSESOCKETDATA options now
in the git repo, targeted for inclusion in the next release (possibly named
7.21.7). It allows the application to set a function to get called when a
socket is about to get closed (which is usually close() on linux/unix or
closesocket() on Windows).

I'm interested in feedback and comments. I've added two test cases that verify
the basic functionality and the options are documented:

http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTCLOSESOCKETFUNCTION

If you rather want a fresh tarball, wait for the next daily snapshot that gets
packaged and is available in about 5 hours.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-05-18