Crossfire JXClient, Trunk
|
Protected Member Functions | |
ChannelIO (SocketChannel sc, boolean blocking) throws IOException | |
void | resizeRequestBB (int remaining) |
Protected Attributes | |
ByteBuffer | requestBB |
SocketChannel | sc |
Package Functions | |
void | close () throws IOException |
boolean | dataFlush () throws IOException |
boolean | doHandshake () throws IOException |
boolean | doHandshake (SelectionKey sk) throws IOException |
ByteBuffer | getReadBuf () |
SocketChannel | getSocketChannel () |
int | read () throws IOException |
boolean | shutdown () throws IOException |
long | transferTo (FileChannel fc, long pos, long len) throws IOException |
int | write (ByteBuffer src) throws IOException |
Static Package Functions | |
static ChannelIO | getInstance (SocketChannel sc, boolean blocking) throws IOException |
Static Private Attributes | |
static int | requestBBSize = 4096 |
A helper class for properly sizing inbound byte buffers and redirecting I/O calls to the proper SocketChannel call.
Many of these calls may seem unnecessary until you consider that they are placeholders for the secure variant, which is much more involved. See ChannelIOSecure for more information.
Definition at line 56 of file ChannelIO.java.
|
protected |
Definition at line 68 of file ChannelIO.java.
References sc.
Referenced by getInstance().
|
package |
Definition at line 185 of file ChannelIO.java.
References sc.
Referenced by RequestHandler.handle(), and RequestServicer.service().
|
package |
Reimplemented in ChannelIOSecure.
Definition at line 166 of file ChannelIO.java.
|
package |
Reimplemented in ChannelIOSecure.
Definition at line 108 of file ChannelIO.java.
Referenced by RequestHandler.receive(), and RequestServicer.receive().
|
package |
Reimplemented in ChannelIOSecure.
Definition at line 121 of file ChannelIO.java.
|
staticpackage |
Definition at line 74 of file ChannelIO.java.
References ChannelIO(), requestBB, requestBBSize, and sc.
Referenced by AcceptHandler.handle(), Acceptor.run(), B1.runServer(), BN.runServer(), and BP.runServer().
|
package |
Definition at line 140 of file ChannelIO.java.
References requestBB.
Referenced by RequestHandler.receive(), and RequestServicer.receive().
|
package |
Definition at line 82 of file ChannelIO.java.
References sc.
Referenced by AcceptHandler.handle(), and Acceptor.run().
|
package |
Reimplemented in ChannelIOSecure.
Definition at line 129 of file ChannelIO.java.
References requestBB, requestBBSize, resizeRequestBB(), and sc.
Referenced by RequestHandler.receive(), and RequestServicer.receive().
|
protected |
Definition at line 90 of file ChannelIO.java.
References requestBB.
Referenced by read().
|
package |
Reimplemented in ChannelIOSecure.
Definition at line 178 of file ChannelIO.java.
Referenced by RequestHandler.handle(), and RequestServicer.service().
|
package |
|
package |
|
protected |
Definition at line 65 of file ChannelIO.java.
Referenced by ChannelIOSecure.doHandshake(), getInstance(), ChannelIOSecure.getInstance(), getReadBuf(), read(), ChannelIOSecure.read(), and resizeRequestBB().
|
staticprivate |
Definition at line 66 of file ChannelIO.java.
Referenced by getInstance(), and read().
|
protected |
Definition at line 58 of file ChannelIO.java.
Referenced by ChannelIO(), ChannelIOSecure.ChannelIOSecure(), close(), ChannelIOSecure.doHandshake(), getInstance(), ChannelIOSecure.getInstance(), getSocketChannel(), read(), ChannelIOSecure.read(), transferTo(), and write().