@Override
        public void write(int b) {
            // This should actually not be called, as in contrast to TCP, Raw sockets are not a stream
            // messages which should be sent should be processed in total by the write(byte[]) method.
            throw new RuntimeException("write(byte) should never be called in a RawSocketChannel");
        }
This output stream simply discards anything it should send.
plc4j/utils/raw-sockets/src/main/java/org/apache/plc4x/java/utils/rawsockets/netty/RawSocketChannel.java