问题
PIPES are unidirectional and can be synchronous or asynchronous in communication.
But how to create a Bidirectional Named pipe with one endpoint on one process and the other endpoint on other process both processes sharing the same memory and is present within the same operating system and communicating asynchronously.
Is there a way to do it ?
回答1:
On Linux you must use two pipes if you want full duplex communication. Solaris however has full duplex pipes.
It sounds like a Unix-domain socket would satisfy your requirements. Such a socket is named, full duplex and asynchronous.
来源:https://stackoverflow.com/questions/29296007/bidirectional-message-passing-between-2-processes-within-an-os