directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vinod Panicker <vino...@gmail.com>
Subject Re: [mina] how to close session for reading
Date Mon, 21 Nov 2005 10:22:46 GMT
Basically it seems like this is a feature request for the shutdown() api.

Trustin, if shutdown was exposed, users could close the underlying
stream for reading/writing selectively.

Regards,
Vinod.

On 11/20/05, Niklas Therning <niklas@trillian.se> wrote:
> Kaspar Luethi wrote:
>
> >> Wouldn't it be more elegant if you could do session.closeForInput()
> >> in messageReceive() ?
> >
> >
> > i think ProtocolSession is gone since 0.9, but 0.8 should also have
> > the suspendRead() method, which probably does what you need.
> >
> > "A shortcut method for setTrafficMask(TrafficMask) that suspends
> > read operations for this session."
> >
> setTrafficMask() and the shortcuts suspendRead()/resumeRead()/... are
> not included in 0.8. You will have to use the unstable 0.9 if you need that.
>
> /Niklas
>
>

Mime
View raw message