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 21:39:28 +0100 (CET)

On Wed, 21 Nov 2012, Colin wrote:

> there are no equivalents for read and write. Are there any specific reasons
> to not include them and/or could they be easily added?

We've not had anyone ask for such functions or presented a valid use-case for
when such functions would indeed be needed. As lots of internals in libcurl
assume and only work with actual *sockets* I can't think of very many cases
where you want to provide your own functions to read or write from sockets.

Can you elaborate on your use case?

But no, I don't think it has to be very difficult to add such functions.

-- 
  / 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