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) |
public static boolean read(ByteBuffer buf, WebSocketImpl ws, ByteChannel channel) throws IOException
IOException
public static boolean readMore(ByteBuffer buf, WebSocketImpl ws, WrappedByteChannel channel) throws IOException
buf
- The ByteBuffer to read fromws
- The WebSocketImpl associated with the channelschannel
- The channel to read fromWrappedByteChannel.readMore(ByteBuffer)
IOException
- May be thrown by WrappedByteChannel.readMore(ByteBuffer)
#WrappedByteChannel.readMore(ByteBuffer)
public static boolean batch(WebSocketImpl ws, ByteChannel sockchannel) throws IOException
ws
- The WebSocketImpl associated with the channelssockchannel
- The channel to write toIOException
- May be thrown by WrappedByteChannel.writeMore()
Copyright © 2017. All rights reserved.