cURL / Mailing Lists / curl-library / Single Mail

curl-library

[PATCH] modular I/O

From: Howard Chu <hyc_at_highlandsun.com>
Date: Wed, 05 May 2010 21:44:48 -0700

Daniel Stenberg wrote:
> On Sun, 2 May 2010, Howard Chu wrote:
>> I'll need to study the libcurl code and think about this some more...
>
> Sure! Just ask if there's anything else I can help to clarify (or totally
> confuse you with!) ;-)

After studying the ssh code and other bits it looked like it was going to get
ugly fitting RTMP_Read and RTMP_Write support into the existing
infrastructure. So I've written this patch to split the I/O handling out of
sendf.c into private handlers. Please consider adopting this, it will make
future protocol additions a lot easier.

I also replaced the (error == -1) /* EWOULDBLOCK */ kludge with CURLE_AGAIN; I
think that clarifies things a bit but it could probably be cleaned up further.

-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/


-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2010-05-06