Package com.iizix.nio

Interface ISocketComm

    • Method Detail

      • process

        void process​(java.nio.ByteBuffer buf)
        Called for the selection key associated with the ISocketComm implementor (normally SocketComm and ServerSocketComm) to process data.
      • close

        boolean close​(boolean rightNow)
        Called when the socket should be closed.
        Parameters:
        rightNow - If true, the (server) socket channel is closed immediately, otherwise (SocketChannel), the socket may flush all output before closing.
        Returns:
        true if closed, false if already closed.