A Unix ___domain socket (UDS) or IPC socket (inter-process communication socket) is a virtual socket, similar to an internet socket that is used in POSIX operating systems for inter-process communication. The correct standard POSIX term is POSIX Local IPC Sockets.
These connections appear as byte streams, much like network connections, but all data remains within the local computer. UNIX ___domain sockets use the file system as the address name space, i.e they use files to communicate.
In addition to sending data, processes can send file descriptors across a Unix ___domain socket connection using the sendmsg() and recvmsg() system calls.
External links
- The Single UNIX Specification, Version 5 from The Open Group : create a pair of connected sockets – System Interfaces Reference,
- The Single UNIX Specification, Version 5 from The Open Group : send a message on a socket – System Interfaces Reference,
- The Single UNIX Specification, Version 5 from The Open Group : receive a message from a socket – System Interfaces Reference,
- file descriptors – System Interfaces Reference, The Single UNIX Specification, Version 5 from The Open Group : socket ancillary data, including sending/receiving
- ucspi-unix, UNIX-___domain socket client-server command-line tools
- unix ___domain sockets