Unix Socket Domain Principle. How it works?

I am learning a Unix domain socket. Especially about how it works. I searched a lot of keywords many times, but the results are APIs, system calls, how to use them, examples .... I also read about Pipe and FIFO, because the Unix domain socket is said to match Pipe and FIFO, but I still want to learn more about the / pracesles Unix Domain Socket concept. How it works? (Perhaps at the kernel level, because the Wiki says this: "This allows two processes to open the same socket for communication. However, communication takes place entirely inside the operating system kernel."

I'm still wondering why Unix domain Socket documentaries are smaller than Pipe or FIFO? Maybe because he was born so many years ago?

Can someone show me any ideas or which books / links to read?

Thanks in advance!

+5
source share
1 answer

Unix sockets are used like any other type of socket. This means that they use system socket calls. The difference between FIFO and Unix sockets is that FIFO uses sys file calls, while Unix sockets use socket calls.

Unix sockets are treated as files. This allows you to use file permissions for access control.

Unix sys sys ( FIFO mkfifo). , connect, . , . FIFO . - /.

Unix- , FIFO - . accept, .

Unix . , . FIFO : - -.

Unix , , IP-. , . , .

, Unix , net/unix/af_unix.c Linux.

+16

All Articles