I'd like to establish a bidirectional communication between two attached blocks, without asking the user to write code like msg_connect().
One way could be: the upstream block generate an id like
and send it to the next block using a tag.
After what the upstream block create a publish port called ID+"alice" and a subscribe to a port called ID+"bob".
Can you tip me a better/cleaner way?
I need this bidirectional channel in order to comunicate device pointer, send kernel code(thanks to CUDA 7),etc..
Thanks for your time,