s2 = xlisten ("ipc:///tmp/test.ipc"); s = xconnect ("ipc:///tmp/test.ipc");
XPF_IPC - inter-process transport mechanism
#include <xio/socket.h>
Inter-process transport allows for sending messages between processes within a single box. The implementation uses native IPC mechanism provided by the local operating system and the IPC addresses are thus OS-specific.
On POSIX-compliant systems, UNIX domain sockets are used and IPC addresses are file references. Note that both relative (ipc://test.ipc) and absolute (ipc:///tmp/test.ipc) paths may be used. Also note that access rights on the IPC files must be set in such a way that the appropriate applications can actually use them.
s2 = xlisten ("ipc:///tmp/test.ipc"); s = xconnect ("ipc:///tmp/test.ipc");
Dong Fang <yp.fangdong@gmail.com> Martin Sustrik <sustrik@250bpm.com>