httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@covalent.net
Subject Re: APR_EOF?
Date Thu, 22 Jun 2000 17:48:47 GMT

> Why not combine socket i/o with file i/o,  i.e., make ap_read() handle
> sockets, pipes and
> files and eliminate entirely ap_recv()? Ditto the ap_write() and
> ap_send.

Windows files are not the same as Windows sockets.  Ditto for OS/2 and
BeOS.  Because Unix is the only platform that has files and sockets that
are equivalent, it is not possible to combine the two types or any
functions that have to deal with the two types.  Not possible is a bit
strong, obviously it is possible, however it removes type checking at
compile time, and is generally a bad idea.  This was all covered way back
when, when APR was first designed and implemented.

Ryan


_______________________________________________________________________________
Ryan Bloom                        	rbb@apache.org
406 29th St.
San Francisco, CA 94131
-------------------------------------------------------------------------------


Mime
View raw message