-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
hi,
To bind more than one port by Mina, I use the following:
acceptor.bind(new InetSocketAddress(portNumber));
I don't know if I am using in the correct way, but works.
Seems to me that you can not set different handlers for each port.
What I do is to receive the message in a handler and call a different
class according to the port
Again, I don't know if I am doing in the correct way.
Thanks.
On 08/20/2012 05:28 AM, 轩辕嘉 wrote:
> Please tell me how to bind more than one port by Mina,and how to
> set different Handlers by receiving massages from different ports.
> Please reply me as soon as possible. Thank you very much!
>
- --
{}S José Vilmar Estácio de Souza
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJQMgTpAAoJEPMEywZ3KXznfCcH/3cu00eDCNjP0JIEvC74XvaH
DclqvZ+hE0FAN1y94ZmlhBrKcX7VOjQ0fmrmHAIe2zpv4SOjgKSl2ySvytLul/PD
Yjq7b8GxQGHm2FMpLdx+5xBxK5cMznBTnZwhgeQz4EuWXoE1RkGXuvz/RcRwVOMD
sNzGhkYN69oM6IlZqKrrg4wbsVDrCPlmRo9YbZ7uzah1o+Dt/U3w8BddzM3wLJEe
plqzgMS+GAVI6CGK04jW0Or6+BU0e2Mz8jvRnC0X82R5t+QWwC8UuiPQqsN7GCk+
JuteBi7VVJ3yeE97iJUYQ8f15xsrXi0vhvvRwdNotmXH9ZCwsZ9egmzfM0XLtec=
=tOpu
-----END PGP SIGNATURE-----