@Override
    protected int doReadBytes(ByteBuf buf) throws Exception {
        if (receiveHandle == null || !receiveHandle.isOpen()) {
            return -1;
        }
        try {
            return super.doReadBytes(buf);
        } catch (SocketTimeoutException ignored) {
            return 0;
        }
    }
Channel based on a Pcap4J raw-socket, allowing to actively communicate based on ethernet frames.
plc4j/utils/raw-sockets/src/main/java/org/apache/plc4x/java/utils/rawsockets/netty/RawSocketChannel.java