On Nov 13, 2007 7:02 PM, Bogdan Ciprian Pistol <[EMAIL PROTECTED]> wrote: > > The best way is: > > > > session.write(something).addListener(IoFutureListener.CLOSE); > > Thanks Trustin, > > One more question... > > I store the IoSession in a custom Object and when data is available I > call session.write( ) from another thread to send the data out. > Can I use IoSession outside of IoHandler or it's thread? I should be > aware of some synchronization issues, is IoSession thread safe?
IoSession should be thread-safem which means you can call IoSession whereever and whenever. Sounds good? :) HTH, Trustin -- what we call human nature is actually human habit -- http://gleamynode.net/ -- PGP Key ID: 0x0255ECA6
