You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by Trustin Lee <tr...@gmail.com> on 2006/09/01 05:30:20 UTC
Re: SocketConnector object utilization
On 7/8/06, peter royal <pr...@apache.org> wrote:
>
> On Jul 7, 2006, at 12:16 PM, <ci...@gmail.com> <ci...@gmail.com>
> wrote:
> > Is there a way for me produce an IoAcceptor behaviour on the client
> > side? A shared across IoHandler for connectors (of course with
> > different sessions).
>
> sure, just pass the same IoHandler instance in each time you
> call .connect() :)
Exactly. BTW we cannot assume that we will call connect() just once, so the
IoHandler implementation shouldn't assume it is handling only one
connection. For convenience, an implementor could use
org.apache.mina.handler.multiton package.
Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP key fingerprints:
* E167 E6AF E73A CBCE EE41 4A29 544D DE48 FE95 4E7E
* B693 628E 6047 4F8F CFA4 455E 1C62 A7DC 0255 ECA6