Documentation of 'org.python.core.io.ServerSocketIO' Java class
ServerSocketIO
org.python.core.io

Class ServerSocketIO



  • public class ServerSocketIO
    extends SocketIOBase<java.nio.channels.ServerSocketChannel>
    Raw I/O implementation for server sockets.
    • Constructor Detail

      • ServerSocketIO

        public ServerSocketIO(java.nio.channels.ServerSocketChannel socketChannel,
                              java.lang.String mode)
        Construct a ServerSocketIO for the given ServerSocketChannel.
        Parameters:
        socketChannel - a ServerSocketChannel to wrap
        mode - a raw io socket mode String
    • Method Detail

      • readinto

        public int readinto(java.nio.ByteBuffer buf)
        Description copied from class: RawIOBase
        Read up to buf.remaining() bytes into buf. Returns number of bytes read (0 for EOF).
        Overrides:
        readinto in class RawIOBase
        Parameters:
        buf - a ByteBuffer to read bytes into
        Returns:
        the amount of data read as an int
      • write

        public int write(java.nio.ByteBuffer buf)
        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().
        Overrides:
        write in class RawIOBase
        Parameters:
        buf - a ByteBuffer value
        Returns:
        the number of bytes written as an int

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.