[KLUG Members] unix domain sockets

Peter Buxton members@kalamazoolinux.org
Fri, 11 Oct 2002 14:12:33 -0400


On Fri, Oct 11, 2002 at 12:30:25PM -0400, Adam Williams wrote:

> > I'm sure there's an easy answer I've just not found yet, but how do
> > I connect my stdin and stdout to a unix domain socket. There is the
> > program socket, but it seems to only do TCP/IP.
> 
> A domain socket isn't TCP/IP?  I thought it was a file of type "s"
> used for communication between processes on the same host (whatever
> that means these days)
> 
> Anyway you can use netcat or net-pipe to interact with sockets from
> the shell or somewhere similiar.

socket and netcat only do IP addresses. They don't seem to like file
names for an address, unless unix domains have a special addressing
style I am unaware of. :-(

It's not just a question of writing a few bytes to a file. I want to
hold a session with Cyrus's LMTP facility, which only speaks to a unix
domain socket.

Oh, no.... I see the app ipcconnect. It's from Daniel J. Bernstein. :-(
Oh, well, I can hold my nose and compile as well as the next person...

-- 
http://www.killdevil.org/~peter
Though nothing is wasted, everything is spent. -- Annie Dillard