Exemple #1
0
  @Override
  public void activate_in() {
    if (!io_enabled) {
      //  There was an input error but the engine could not
      //  be terminated (due to the stalled decoder).
      //  Flush the pending message and terminate the engine now.
      decoder.process_buffer(inbuf, 0);
      assert (!decoder.stalled());
      session.flush();
      error();
      return;
    }

    io_object.set_pollin(handle);

    //  Speculative read.
    io_object.in_event();
  }