conn-tools
Software
www.skarnet.org
The ipcconnect2 program
ipcconnect2 establishes a connection to a Unix domain socket.
It copies stdin to the writing end of the socket, and the reading end
of the socket to stdout.
Interface
ipcconnect2 path
- ipcconnect2 establishes a stream connection to the
Unix domain socket located at path. It exits 111 on a
hard error. It exits 0 when either stdin closes or the server
closes the connection.
Internals
ipcconnect2 is an execline script that simply calls
ipcclient2, a program similar to
ipcclient,
with ioconnect as its argument.
Notes
- ipcconnect2 is very similar to
ipcconnect,
except that it properly closes the connection on client request
as well as on server request. This is achieved by the
ioconnect shutdown hack.