Implemented a basic NIO socket channel interface. Non-blocking socket channels

and server socket channels are implemented.  This version works but only when
libnative is linked with g++ (because of C++ object creation code that fails
without this linking)
This commit is contained in:
Eric Scharff
2007-10-05 15:32:56 -06:00
parent e32a335079
commit 98269286e5
12 changed files with 1021 additions and 1 deletions

View File

@ -60,7 +60,9 @@ public class ByteBuffer {
if (position != 0) {
System.arraycopy(array, arrayOffset+position, array, arrayOffset, remaining());
}
position=0;
position=remaining();
limit(capacity());
return this;
}