public class ServerSocketIO extends SocketIOBase<ServerSocketChannel>
DEFAULT_BUFFER_SIZE
Constructor and Description |
---|
ServerSocketIO(ServerSocketChannel socketChannel,
String mode)
Construct a ServerSocketIO for the given ServerSocketChannel.
|
Modifier and Type | Method and Description |
---|---|
int |
readinto(ByteBuffer buf)
Read up to buf.remaining() bytes into buf.
|
int |
write(ByteBuffer buf)
Write the given ByteBuffer to the IO stream.
|
close, getChannel, readable, writable
asInputStream, asOutputStream, checkClosed, checkReadable, checkWritable, closed, flush, isatty, seek, seek, tell, truncate
public ServerSocketIO(ServerSocketChannel socketChannel, String mode)
socketChannel
- a ServerSocketChannel to wrapmode
- a raw io socket mode Stringpublic int readinto(ByteBuffer buf)
RawIOBase
public int write(ByteBuffer buf)
RawIOBase