public class SocketChannelIOHelper extends Object
| Constructor and Description |
|---|
SocketChannelIOHelper() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
batch(WebSocketImpl ws,
ByteChannel sockchannel)
Returns whether the whole outQueue has been flushed
|
static boolean |
read(ByteBuffer buf,
WebSocketImpl ws,
ByteChannel channel) |
static boolean |
readMore(ByteBuffer buf,
WebSocketImpl ws,
WrappedByteChannel channel) |
static void |
writeBlocking(WebSocketImpl ws,
ByteChannel channel) |
public static boolean read(ByteBuffer buf, WebSocketImpl ws, ByteChannel channel) throws IOException
IOExceptionpublic static boolean readMore(ByteBuffer buf, WebSocketImpl ws, WrappedByteChannel channel) throws IOException
readMore(ByteBuffer, WebSocketImpl, WrappedByteChannel)IOExceptionWrappedByteChannel.readMore(ByteBuffer)public static boolean batch(WebSocketImpl ws, ByteChannel sockchannel) throws IOException
IOExceptionpublic static void writeBlocking(WebSocketImpl ws, ByteChannel channel) throws InterruptedException, IOException
InterruptedExceptionIOExceptionCopyright © 2013. All Rights Reserved.