-
public class SocketChannelIOHelper
-
-
Method Summary
Modifier and Type Method Description static boolean
read(ByteBuffer buf, WebSocketImpl ws, ByteChannel channel)
static boolean
readMore(ByteBuffer buf, WebSocketImpl ws, WrappedByteChannel channel)
static boolean
batch(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
-
-
-
-