apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@rowe-clan.net>
Subject Re: io abstractions
Date Wed, 28 Jun 2006 21:34:33 GMT
Brad Nicholes wrote:
>   Forgive me for jumping in late and I have to admit that I haven't
> looked at the API's yet, but why do we need a new API?  Shouldn't the
> apr_socket abstraction carry enough information so that apr_write()
> would be sufficient and do the right thing?

Of course it -can-.

It's simply that the additional branch logic will ultimately perform less
optimally than per-object read/write, and therefore it's a good thing to
offer developers pure one-object semantics and a generic abstraction.

View raw message