Jeff Trawick wrote:
> Ben Laurie <[EMAIL PROTECTED]> writes:
> 
> 
>>Seems to me that you really want a apr_poll equivalent that works on
>>bucket brigades - that would make this clean, and could be quite
>>elegant (IMO).
> 
> 
> What seems useful (to me) is for apr_poll() to operate on a generic
> I/O handle (instead of apr_socket_t) and for the APR app to be able to
> retrieve the generic I/O handle from an APR socket or pipe or
> whatever.  The bucket code could then be able to return a generic I/O
> handle corresponding to a bucket (extend it for brigades as well).
> 
> (For some bucket types (e.g., heap) perhaps they always appear
> readable, or perhaps trying to retrieve the handle indicates that the
> operation is inappropriat.)

Well, you may want that under the hood, but it clearly ain't right for 
bucket brigades, coz the brigade itself might have data ready.

I suppose write brigades will have to say no at some point. Hmm. 
Non-trivial.

Cheers,

Ben.

-- 
http://www.apache-ssl.org/ben.html       http://www.thebunker.net/

"There is no limit to what a man can do or how far he can go if he
doesn't mind who gets the credit." - Robert Woodruff

Reply via email to