Package org.python.core.io
Class ServerSocketIO
Raw I/O implementation for server sockets.
- Author:
- Philip Jenvey
-
Field Summary
Fields inherited from class org.python.core.io.IOBase
DEFAULT_BUFFER_SIZE
-
Constructor Summary
ConstructorDescriptionServerSocketIO
(ServerSocketChannel socketChannel, String mode) Construct a ServerSocketIO for the given ServerSocketChannel. -
Method Summary
Modifier and TypeMethodDescriptionint
readinto
(ByteBuffer buf) Read up to buf.remaining() bytes into buf.int
write
(ByteBuffer buf) Write the given ByteBuffer to the IO stream.Methods inherited from class org.python.core.io.SocketIOBase
close, getChannel, readable, writable
Methods inherited from class org.python.core.io.IOBase
asInputStream, asOutputStream, checkClosed, checkReadable, checkWritable, closed, flush, isatty, seek, seek, tell, truncate
-
Constructor Details
-
ServerSocketIO
Construct a ServerSocketIO for the given ServerSocketChannel.- Parameters:
socketChannel
- a ServerSocketChannel to wrapmode
- a raw io socket mode String
-
-
Method Details
-
readinto
Description copied from class:RawIOBase
Read up to buf.remaining() bytes into buf. Returns number of bytes read (0 for EOF). -
write
Description copied from class:RawIOBase
Write the given ByteBuffer to the IO stream. Returns the number of bytes written, which may be less than buf.remaining().
-