Unix domain socket
.It is also referred to by its address family AF_UNIX. Valid socket types in the UNIX domain are:
SOCK_STREAM (compare to TCP) – for a stream-oriented socket
SOCK_DGRAM (compare to UDP) – for a datagram-oriented socket that preserves message boundaries (as on most UNIX implementations, UNIX domain datagram sockets are always reliable and don't reorder datagrams)
SOCK_SEQPACKET (compare to SCTP) – for a sequenced-packet socket that is connection-oriented, preserves message boundaries, and delivers messages in the order that they were sent
Processes reference Unix domain sockets as file system inodes, so two processes can communicate by opening the same socket. コミュニケーションは、完全にオペレーティングシステムのカーネル内で発生する
プロセスは、sendmsg()およびrecvmsg()システムコールを使用してUNIXドメインソケット接続を経由してファイル記述子を送信することができる
同じホストでのプロセス間通信で使われる
cf. ソケット通信(INETドメインソケット通信)は異なるホスト