Crossfire JXClient, Trunk
|
Go to the documentation of this file.
43 import java.nio.channels.*;
58 protected SocketChannel
sc;
71 sc.configureBlocking(blocking);
93 ByteBuffer bb = ByteBuffer.allocate(
requestBB.capacity() * 2);
129 int read() throws IOException {
147 int write(ByteBuffer src)
throws IOException {
148 return sc.write(src);
154 long transferTo(FileChannel fc,
long pos,
long len)
throws IOException {
155 return fc.transferTo(pos, len,
sc);
ChannelIO(SocketChannel sc, boolean blocking)
void resizeRequestBB(int remaining)
SocketChannel getSocketChannel()
int write(ByteBuffer src)
static ChannelIO getInstance(SocketChannel sc, boolean blocking)
long transferTo(FileChannel fc, long pos, long len)
boolean doHandshake(SelectionKey sk)