[zeromq-dev] To use zsock_signal or not to use zsock_signal
Michal Vyskocil
michal.vyskocil at gmail.com
Mon Jan 11 10:32:41 CET 2016
Hi,
I have been exploring usage of actors in our project, so I started to
model some parts as actors. To setup it, there is a simple protocol
inspired by mlm_server ("VERBOSE", "CONNECT", "CONFIG", ...)
It seems that there are two approaches
1.) mlm_server (https://github.com/zeromq/malamute/blob/master/src/mlm_server_engine.inc#L1395)
2.) zauth (https://github.com/zeromq/czmq/blob/master/src/zauth.c#L158)
While zauth signals end of command processing by zsock_signal,
mlm_server don't do that.
Which approach is recommended? As we have had some timing issues and
using zclock_sleep does not looks good, using zsock_signal seems like
a better way to handle actor's configuration.
--
best regards
Michal Vyskocil
More information about the zeromq-dev
mailing list