You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by Joao <jo...@wireless-networks.com> on 2006/06/29 19:47:15 UTC
Waiting on more than one port with same handle
Hello,
I am new to MINA, though I've used ACE and other
architectures.
I have a Reactor class that can accept connection for more than one
port and redirect to a single handle. Now, I moved everything
to MINA
cause I cant duplicate all this good code in a short period of
time.
Can I use a SocketAcceptor, or DatagramAcceptor to wait on more
than one port?
Thanks,
Joao,
Re: Waiting on more than one port with same handle
Posted by peter royal <pr...@apache.org>.
On Jun 29, 2006, at 6:47 PM, Joao wrote:
> I am new to MINA, though I've used ACE and other
> architectures.
>
> I have a Reactor class that can accept connection for more
> than one
> port and redirect to a single handle. Now, I moved
> everything to MINA
> cause I cant duplicate all this good code in a short
> period of time.
>
> Can I use a SocketAcceptor, or DatagramAcceptor to wait on more
> than one port?
Yup, just call bind() multiple times, and pass in the same IoHandler
instance.
-pete
--
proyal@apache.org - http://fotap.org/~osi