hi,
i am whipping up a zmq plugin in the moment (publisher only at this
stage) and am not quite sure where to put the different bits.
zmq architecture looks like this:
context object - init when program starts, shared across all forks/threads
socket binding - uses shared context object, needs to be done in each
fork/thread
communication - done in the thread
how can i make sure in the plugin to init the context only once and
init the connection binding once per fork (in hypnotoad anyway)
stub code (that is actually working, just not too sure about how
robust it is and if it would hold up in production)
https://gist.github.com/4322929
and a basic test client:
https://gist.github.com/4322946
cheers
lenz