3 ms·
Been using them since 1992 but at this point I would naturally turn to sockets, even on the same machine. I can't even really say why though. Named pipes are ni
by zwieback 5y ago
Been using them since 1992 but at this point I would naturally turn to sockets, even on the same machine. I can't even really say why though. Named pipes are nice because they are really more like a file but at this point sockets feel more natural because they exist and are supported everywhere.
- ziml77 5y agoYou can apply permissions to named pipes and, well, they're named which is useful since you can use a unique and deterministic enough name that you don't need an extra band of communication for the client to know what port the server ended up starting on.
- zwieback 5y agoYeah, good point, as opposed to anonymous pipes, which also still exist.
- ww520 5y agoTCP server cannot assume the security context of the client, thus privilege elevation attack can easily happen.
- monocasa 5y agoMore importantly in a lot of cases, you can ask the kernel for the client's SID as the server, and make decisions knowing that the client couldn't forge it.