Implement ZAP and integrate it with PLAIN mechanism

This commit is contained in:
Martin Hurton
2013-06-06 13:13:10 +02:00
parent 4e47084dd4
commit 2928c91a6d
11 changed files with 458 additions and 55 deletions

View File

@@ -62,6 +62,7 @@ namespace zmq
void terminate ();
void activate_in ();
void activate_out ();
void zap_msg_available ();
// i_poll_events interface implementation.
void in_event ();
@@ -168,10 +169,6 @@ namespace zmq
bool io_error;
// True iff the session could not accept more
// messages due to flow control.
bool congested;
// Indicates whether the engine is to inject a phony
// subscription message into the incomming stream.
// Needed to support old peers.
@@ -179,7 +176,10 @@ namespace zmq
mechanism_t *mechanism;
// True iff the engine couldn't consume the last decoded message.
bool input_paused;
// True iff the engine doesn't have any message to encode.
bool output_paused;
// Socket