cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Notification about open/close socket

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 5 Dec 2015 14:53:03 +0100 (CET)

On Thu, 3 Dec 2015, Inca R wrote:

> I cannot find any easy way to get from curl the number of concurrent open
> sockets it is using, or a callback whenever a new socket is open or close.

How about using CURLOPT_OPENSOCKETFUNCTION and CURLOPT_CLOSESOCKETFUNCTION ?

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