You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by Francesca Milan <fr...@newvision.it> on 2007/11/06 08:42:13 UTC

Write message from a SocketAcceptor

Hi,

do you know if is possible to write a message from a Mina SocketAcceptor?
Do I get and use the IoSession object from my SocketAcceptor handler?

Thanks
Francesca

...sorry for my terrible english :/

Re: Write message from a SocketAcceptor

Posted by Trustin Lee <tr...@gmail.com>.
On 11/6/07, Francesca Milan <fr...@newvision.it> wrote:
> Hi,
>
> do you know if is possible to write a message from a Mina SocketAcceptor?
> Do I get and use the IoSession object from my SocketAcceptor handler?

you can get the list of the sessions managed by SocketAcceptor
(IoAcceptor) using IoService.getManagedSessions() IIRC.

Otherwise, you could maintain the reference to your IoHandler
implementation so you can get the reference of the IoSession.

HTH,
Trustin
-- 
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6