Two sources/channels to same destination

0 votes
asked Nov 3, 2015 by (600 points)

  Suppose I have two sources (one for ADT's from "x" and one from ADT's from "y") and they both need to go to the same destination (as the destination doesn't close connections, only has one port),  How can I achieve this across two channels?, i.e. have two channels send to the same destination?

1 Answer

+1 vote
Answer from Qvera support.

  Pipe them both into a new socket (the same socket)

  Then have a new channel that reads from the socket (allow multiple connections) and then sends message to your port that only allows one connection.
answered Nov 3, 2015 by (600 points)