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

Miquel van Smoorenburg (
15 Dec 1997 17:56:18 +0100

I currently have an application that uses a named pipe to listen for
commands. I'd like to extend the app to 2way communication, so that
would mean a UNIX domain socket. However I want to keep the interface
the same.

What would be against it to handle an open() of a UNIX domain socket like
a socket() / connect() pair ? Any pros/cons? Do other UNIXes do this?

I'll try to make a patch sometime and experiment with it a bit.


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