Update mechanism API so we can check for ERROR status

This commit is contained in:
Martin Hurton
2014-05-06 17:07:50 +02:00
parent 8672f3023a
commit 0be8144176
10 changed files with 43 additions and 28 deletions

View File

@@ -237,9 +237,9 @@ int zmq::curve_server_t::zap_msg_available ()
return rc;
}
bool zmq::curve_server_t::is_handshake_complete () const
zmq::mechanism_t::status_t zmq::curve_server_t::status () const
{
return state == connected;
return state == connected? mechanism_t::ready: mechanism_t::handshaking;
}
int zmq::curve_server_t::process_hello (msg_t *msg_)