Unix ___domain socket: Difference between revisions

Content deleted Content added
The actual UNIX socket communication does not use files for data exchange; files are only used to create global references for sockets.
No edit summary
Line 1:
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 system]]s for [[inter-process communication]]. The correct standard POSIX term is '''POSIX Local IPC Sockets'''.
 
These connections appear as [[byte stream]]s, much like network connections, but all data remains within the local computer. UNIX ___domain sockets use the file system as their address name space, i.e. they are viewed by processes as files in a file system. This allows two distinct processes to reference and 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.