Hi Mina community,

I've had a bit to read about Mina's architecture and it looks great -
nice job to all involved.

I have an interesting requirement to set up a tunnel, but initial
connectivity must work like a broker.  I was wondering if anyone had
any insights on the best way to go about solving this with Mina, as I
don't see an obvious solution:

The connectivity requirements are HostA and HostB can connect to
BrokerHost only.  Once connected, bytes need to flow as if a normal
tunnel was created.  That is:

Start up/Initialize connections:

HostA --> BrokerHost <-- HostB

After connections are established:

HostA --> BrokerHost --> HostB
HostA <-- BrokerHost <-- HostB

Setting up the connections is very easy in Mina - BrokerHost
essentially needs 2 server sockets, each to service HostA and HostB.
There are plenty of examples on how to set this up.  But, once
connections are established, what is the best way to get the tunnel
working?  The Mina Proxy example is very similar, but works with a
Server Socket and a Client Socket - I have to work with 2 Server
Sockets.

Any ideas?

Thanks to all,

Les

Reply via email to