void zmq::stream_engine_t::zap_msg_available () { zmq_assert (mechanism != NULL); const int rc = mechanism->zap_msg_available (); if (rc == -1) { error (); return; } if (input_paused) activate_in (); if (output_paused) activate_out (); }
int zmq::stream_engine_t::next_handshake_message (msg_t *msg_) { zmq_assert (mechanism != NULL); const int rc = mechanism->next_handshake_message (msg_); if (rc == 0) { if (mechanism->is_handshake_complete ()) mechanism_ready (); if (input_paused) activate_in (); } return rc; }