Class SerialChannelHandler.SerialPortHandler

    • Method Detail

      • open

        public boolean open()
      • getIdentifier

        public String getIdentifier()
      • registerSelectionKey

        public void registerSelectionKey​(org.apache.plc4x.java.transport.serial.SerialSelectionKey selectionKey)
      • read

        public int read​(io.netty.buffer.ByteBuf buf)
        Specified by:
        read in class SerialChannelHandler
        Returns:
        Return the amoubnt of bytes written into the buffer
      • write

        public int write​(io.netty.buffer.ByteBuf buf)
        Specified by:
        write in class SerialChannelHandler
        Returns:
        Number of bytes written to wire