directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trustin Lee <trus...@gmail.com>
Subject Re: [mina] Traffic control implementation
Date Thu, 03 Nov 2005 00:55:43 GMT
2005/11/3, Niklas Therning <niklas@trillian.se>:
>
> One thought though. Would it still be possible to have suspendRead/Write
> and resumeRead/Write methods on IoSession? To do the equivalent of
> suspendRead() now without touching the write bit in the mask I would
> have to do:
>
> session.setTrafficMask(session.getTrafficMask().and(TrafficMask.READ.not
> ()));
>
> and to resumeRead():
>
> session.setTrafficMask(session.getTrafficMask().or(TrafficMask.READ));


Actually I was considering to do so. Now I checked in the shortcut methods.

Cheers,
Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/

Mime
View raw message