cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Socket read and write functions

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 21 Nov 2012 22:51:09 +0100 (CET)

On Wed, 21 Nov 2012, Colin wrote:

>> Can you elaborate on your use case?
>
> Imagine libcurl embedded in a large application that has a certain
> infrastructure regarding logging and statistics etc. We would like to
> instrument libcurl just above the socket in order to write a debug message
> and feed the byte counters for every single read()/write() cal on the
> socket, just as we do with other network operations for other protocols.

For that, I'd refer you to CURLOPT_DEBUGFUNCTION ...

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2012-11-21