apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Bannert <aa...@clove.org>
Subject Re: [PATCH] Add support for Unix domain sockets
Date Fri, 11 Jan 2002 15:14:21 GMT
On Fri, Jan 11, 2002 at 10:41:59AM -0000, David Reid wrote:
> I've been up all night so this may be off base...
> 
> AFAICR sockets using AF_UNIX are essentially local inter process
> communication channels?
> 
> If this is the case then why are we having this discussion about adding more
> to the network_io and not simply talking about adding an ipc_ set of
> functions to apr that allow each platform to implement it in their own way,
> as we've done with all the other stuff in apr?  After all that's what apr is
> for isn't it? :)
> 
> This may take a bit of getting the api correct (at least to allow it work on
> all platforms) but I'm sure we can manage it.

Funny you should bring that up (and particularly that ipc_ prefix).
Recently I've been working on a stream pipes proposal for APR that I have
yet to post. This is not quite the same as Unix Domain Sockets, so it
wouldn't be usable for things like EGD, but would be useful for perchild
portability. The main features are interprocess data communication and
the ability to pass apr_file_t and apr_socket_t types between processes. I
will post the API as soon as I have a working proof of concept on Unix.

I'm thinking we can either work the Unix Domain Sockets and stream pipes
into one unified API, or if their attributes are too incompatible I see
no reason why we can't just have two sets of APIs.

-aaron


Mime
View raw message