bluca on master
Refer to zmq_socket because the… Fix minor typo Merge pull request #3789 from s… (compare)
bluca on master
Problem: Issue #3766 states tha… Problem: No relicense agreement… Problem: preious commit contain… and 1 more (compare)
I'm not able to build czmq jni (osx):
[ 3%] Building C object CMakeFiles/czmqjni.dir/src/main/c/org_zeromq_czmq_Zarmour.c.o In file included from /Users/andre.pinto/git/others/czmq/bindings/jni/src/main/c/org_zeromq_czmq_Zarmour.c:10: In file included from /usr/local/Cellar/czmq/4.2.0/include/czmq.h:37: /usr/local/Cellar/czmq/4.2.0/include/czmq_library.h:183:10: fatal error: 'zargs.h' file not found #include "zargs.h" ^~~~~~~~~ 1 error generated. make: *** [CMakeFiles/czmqjni.dir/src/main/c/org_zeromq_czmq_Zarmour.c.o] Error 1 make: *** [CMakeFiles/czmqjni.dir/all] Error 2 make: *** [all] Error 2
if I comment out
add_definitions (-DCZMQ_BUILD_DRAFT_API) I get
use of undeclared identifier 'zproc_t' errors
Hi peeps, hopefully this is the right place to ask this question. I just discovered zmq a couple of days ago while trying to find a networking/message sending solution, and have been reading through the docs and guide. I'm trying to wrap my head around/better understand how to use the different socket types to solve certain scenarios, and was wondering if someone with experience could give their opinion/feedback?
The specific scenario is something like the following (I'm going to make up a scenario related to camera video streams in a house, just to be more concrete):
That roughly sums up the scenario. What I've come up with:
So roughly, something like this:
A client sets up a ZMQ_CLIENT socket, connects to the server, says they want the "kitchen" stream. The server sets up the ZMQ_RADIO socket (if this is first client, otherwise already exists) and the group, and sends the group name to the client. The client then sets up a ZMQ_DISH socket, and begins receiving the stream.
Does this seem like I am following the patterns that zmq sets up in an intended way? If not, any feedback?
Don't share ZeroMQ sockets between threads. ZeroMQ sockets are not threadsafe, while the documentation says
Following are the thread safe sockets: * ZMQ_CLIENT * ZMQ_SERVER * ZMQ_DISH * ZMQ_RADIO * ZMQ_SCATTER * ZMQ_GATHER. These all look like newer/draft socket types, so is it just that the newer ones have been implemented in thread safe manners while the older ones have not?