Le 1/18/13 4:03 PM, Jon V a écrit :
> I'm looking for how Mina is determining a close from NIO. Since NIO does not 
> have any direct method to detect closure.(without calling write/read and 
> getting a -1)

When a socket is closed, the select() call is interrupted with an
OP_READ event, and the read returns 0, which means we have no data in
the socket, ie it's closed.


-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com 

Reply via email to