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 12:50:29 GMT
On 11/21/05, Trustin Lee <trustin@gmail.com> wrote:
> Hi Vinod,
>
> 2005/11/21, Vinod Panicker <vinod.p@gmail.com>:
> > 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.
>
> Hmm, right.  we could override close() method with an additional parameter
> (perhaps TrafficMask).  WDYT?

I think its much better to use the shutdown() semantic. It will ensure
that people who come to MINA from using standard I/O calls find it
convenient.  shutdown() will need to take a mask that specifies
read/write/both as possible values.

Regards,
Vinod.

Mime
View raw message