Help with ByteBuffer usage in nonblocking TCP programming!
Hello everyone,
I am trying to write a server which uses Selector.
My Problem is , when Selector detects that a SocketChannel has new data,what will happen if the data isn't fully transferred to SocketChannel. E.g I want 10 bytes data, but read method only returns 5.
How can I solve this problem?
Thanks.

