Unix ___domain socket

This is an old revision of this page, as edited by Revolus (talk | contribs) at 21:31, 17 June 2010 (The "standard term" is unknown outside of wikipedia.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

A Unix ___domain socket or IPC socket (inter-process communication socket) is a data communications endpoint that is similar to an Internet socket, but does not use a network protocol for communication. It is used in POSIX operating systems for inter-process communication.

Unix ___domain 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 address name space, i.e. they are referenced by processes as inodes in the file system. This allows two distinct processes to open the same socket in order to communicate. However, the actual communication (the data exchange) does not use the file system, but buffers in kernel memory.

In addition to sending data, processes can send file descriptors across a Unix ___domain socket connection (including file descriptors for ___domain sockets) using the sendmsg() and recvmsg() system calls. This means that ___domain sockets can be used as an object-capability communication system.

See also

{{International Paralympic Committee}} template missing ID and not present in Wikidata.