Re: Open() UNIX socket = socket() + connect() ?

Miquel van Smoorenburg (
17 Dec 1997 12:53:04 +0100

In article <>,
Andreas Schwab <> wrote:
>H Peter Anvin <> writes:
>|> There is a huge advantage to it, though: it would enable a way to let
>|> programs written to read (or write) to a file rather talk to a
>|> process. The problem with fifos is that there is only one data path,
>|> so only one program can play this trick at a time, whereas with
>|> sockets there is one data path for each connection open.
>How easy would it be to implement bidirectional pipes?

That's not the same, then you still run into problems if you have
more than one client accessing the pipe to the server at a time.

I have heard that on some Unixes (SVR4) pipes are actually socketpair()s
and as such are bidirectional. In fact if this is also true for named
pipes, you'd expect the open() == socket() + connect() behaviour to
come naturally. Unfortunately I cannot check this right now..


 Miquel van Smoorenburg |  Studying to be a technomage   <*>  | "May you live in interesting times"