How is a “handshake” generally implemented with regards to Named Pipes
问题 I need to implement a handshake type protocol in to a small Linux program that uses named pipes to communicate with other processes. I've searched for a general implementation pattern for a handshake type protocol when using named pipes but I've not been able to turn anything up... I simply can't believe that there isn't patterns to do this. Can someone point me to a possible resource? In full disclosure this is for homework but implementing this pattern isn't the homework. We need to solve a