In fact, you create one channel and wait for the connection, and when it connects, create the second and wait for it.
For each channel that you create and wait for a connection, you get no more than one connection (at a time - you can rework them if this is a request / response / close style).
Thus, each connection is 1-to-1, like a socket or other stream.
Joshua muskovitz
source share