return type long...
SocketChannel.read(ByteBuffer[] bytes, int x, int y);의 사용 방법을 알고 싶습니다.
ByteBuffer[] bytes = new ByteBuffer[2];
bytes[0] = new ByteBuffer(100);
bytes[1] = new ByteBuffer(100);
.......
long size = socketchannel.read(bytes, 0, 10);
.......
이걸 어떻게 사용하나요???
받아온 데이터를 어떻게 사용하나요???