Unix ___domain socket

This is an old revision of this page, as edited by DARTH SIDIOUS 2 (talk | contribs) at 14:04, 10 December 2010 (Reverted edits by 139.179.38.19 (talk) to last revision by 65.31.133.73 (HG)). 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 for exchanging data between processes executing within the same host operating system. While similar in functionality to named pipes, Unix ___domain sockets may be created as byte streams or as datagram sequences, while pipes are byte streams only. Processes using Unix ___domain sockets do not need to share a common ancestry. The programmer's application interface (API) for Unix ___domain sockets is similar to that of an Internet socket, but does not use an underlying network protocol for communication. The Unix ___domain socket facility is a standard component of POSIX operating systems.

UNIX ___domain sockets use the file system as address name space. They are referenced by processes as inodes in the file system. This allows two processes to open the same socket in order to communicate. However, communication occurs entirely within the operating system kernel.

In addition to sending data, processes may send file descriptors across a Unix ___domain socket connection using the sendmsg() and recvmsg() system calls.

See also

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