Content deleted Content added
→See also: remove redirects to another see also item |
m Task 18 (cosmetic): eval 4 templates: hyphenate params (4×); |
||
Line 4:
| date = 30 April 2018
| title = Linux Programmer's Manual (unix - sockets for local interprocess communication)
|
| df = dmy-all}}</ref>
* <code>SOCK_STREAM</code> (compare to [[Transmission Control Protocol|TCP]]) – for a stream-oriented socket
Line 13:
The [[API]] for Unix ___domain sockets is similar to that of an [[Internet socket]], but rather than using an underlying network protocol, all communication occurs entirely within the operating system [[Kernel (operating system)|kernel]]. Unix ___domain sockets may use the file system as their address [[name space]]. (Some operating systems, like Linux, offer additional namespaces.) Processes reference Unix ___domain sockets as file system [[inode]]s, so two processes can communicate by opening the same socket.
In addition to sending data, processes may send [[file descriptor]]s across a Unix ___domain socket connection using the <code>sendmsg()</code> and <code>recvmsg()</code> system calls. This allows the sending processes to grant the receiving process access to a file descriptor for which the receiving process otherwise does not have access.<ref name="neohapsis">{{cite web |url=http://archives.neohapsis.com/archives/postfix/2000-09/1476.html |date=30 September 2000 |title=Archive of the "Postfix Discussions" mailing list |
==See also==
|