-
public class SocketChannelIOHelper
-
-
Method Summary
Modifier and Type Method Description static booleanread(ByteBuffer buf, WebSocketImpl ws, ByteChannel channel)static booleanreadMore(ByteBuffer buf, WebSocketImpl ws, WrappedByteChannel channel)static booleanbatch(WebSocketImpl ws, ByteChannel sockchannel)Returns whether the whole outQueue has been flushed -
-
Method Detail
-
read
static boolean read(ByteBuffer buf, WebSocketImpl ws, ByteChannel channel)
-
readMore
static boolean readMore(ByteBuffer buf, WebSocketImpl ws, WrappedByteChannel channel)
- Parameters:
buf- The ByteBuffer to read fromws- The WebSocketImpl associated with the channelschannel- The channel to read from
-
batch
static boolean batch(WebSocketImpl ws, ByteChannel sockchannel)
Returns whether the whole outQueue has been flushed
- Parameters:
ws- The WebSocketImpl associated with the channelssockchannel- The channel to write to
-
-
-
-