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/