add session->zap_enabled()

checks mechanism != NULL, or NULL + non-empty zap_domain
This commit is contained in:
Min RK
2014-12-03 13:46:28 -08:00
parent 6cf120eaad
commit efed3d010d
3 changed files with 12 additions and 3 deletions

View File

@@ -69,6 +69,7 @@ namespace zmq
int push_msg (msg_t *msg_);
int zap_connect ();
bool zap_enabled ();
// Fetches a message. Returns 0 if successful; -1 otherwise.
// The caller is responsible for freeing the message when no