public class NioWriter
extends java.lang.Object
Constructor and Description |
---|
NioWriter(java.lang.Object lock,
java.nio.channels.SocketChannel channel,
org.jetlang.fibers.NioFiber fiber,
IoBufferPool buffer) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.nio.channels.SocketChannel |
getChannel() |
java.net.SocketAddress |
getRemoteAddress() |
int |
getTotalBytesBuffered() |
SendResult |
send(java.nio.ByteBuffer bb) |
SendResult |
sendWsMsg(byte opCode,
byte[] bytes,
int offset,
int length,
byte[] maskBytes) |
public NioWriter(java.lang.Object lock, java.nio.channels.SocketChannel channel, org.jetlang.fibers.NioFiber fiber, IoBufferPool buffer)
public SendResult send(java.nio.ByteBuffer bb)
public int getTotalBytesBuffered()
public void close()
public java.nio.channels.SocketChannel getChannel()
public java.net.SocketAddress getRemoteAddress()
public SendResult sendWsMsg(byte opCode, byte[] bytes, int offset, int length, byte[] maskBytes)
Copyright © 2019. All Rights Reserved.