I'm currently interesting in UNIX system.
For IPC(Interprocess Communication), UNIX uses a file named socket
. I understand it works like server-client model, write-end and read-end uses socket file to communicate each other.
But I wonder how socket internally works. Each process designate a socket file(maybe with inode
), then write and read on it? If it's true, can I watch raw data(or encapsulated data) if I'm watching this socket file?
One more, socket file has a format? For example, some application socket file like mysql.sock
and docker.sock
, they have their own format?