mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-14 15:05:38 +02:00
add session->zap_enabled()
checks mechanism != NULL, or NULL + non-empty zap_domain
This commit is contained in:
@@ -331,6 +331,14 @@ int zmq::session_base_t::zap_connect ()
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool zmq::session_base_t::zap_enabled ()
|
||||
{
|
||||
return (
|
||||
options.mechanism != ZMQ_NULL ||
|
||||
(options.mechanism == ZMQ_NULL && options.zap_domain.length() > 0)
|
||||
);
|
||||
}
|
||||
|
||||
void zmq::session_base_t::process_attach (i_engine *engine_)
|
||||
{
|
||||
zmq_assert (engine_ != NULL);
|
||||
|
Reference in New Issue
Block a user