3 ms·
It's fine for local IPC like Unix domain sockets. For remote IPC, obviously the machines don't share a common space they can just access as a file for rendezvou
by kazinator 3y ago
It's fine for local IPC like Unix domain sockets. For remote IPC, obviously the machines don't share a common space they can just access as a file for rendezvous, and so we don't use that API.
We have socket, connect|{bind, listen, accept}, read, write.
For connectionless, send, recv.
Sockets are not part of "everything is a file" but of "everything is a file descriptor".
- charcircuit 3y ago>It's fine for local IPC like Unix domain sockets. I disagree. I should be able to just call a function. I don't want to bother figuring out the network protocol that the process decided on. It's too low level to expose.
- duped 3y agoThat's why 9P was invented.