Re: [zeromq-dev] Why socket.send will block without consumer
On Wednesday, March 20, 2013 12:14:09 PM He Jie Xu wrote: Hi, all I try zeromq with following code: import zmq import random import time context = zmq.Context() socket = context.socket(zmq.PUSH) socket.bind(ipc://test.sock) socket.setsockopt(zmq.HWM, 1000) while True: zipcode = random.randrange(1, 10) temperature = random.randrange(1, 215) message = %d %d % (zipcode, temperature) socket.send(message) print 'send', message time.sleep(1) When I am running the code without any consumer. it will block at 'socket.send' But after I read the document, I think when I set HWM, the message will send to memory buffer, it shouldn't block. Is there any wrong? How can I make the 'socket.send' won't block? my zmq version was 2.1.11 I will appreciate any help from you! This is one of the non-obvious aspects of zmq. Queues only exist when there are known connections (whether potential or established). For sockets that connect, the connections are known as you specify them. For sockets that bind, the connections are known only when they are received. Therefore, a bind socket that has no peers (no known connections) will block when you try to send. It's a little confusing because a connect socket that no peers will not block, meaning that the choice to bind or connect produces different behaviors. But it makes sense once you understand how the queues work. Justin___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev
[zeromq-dev] 2.2 and 3.2.2
Hi, What is the difference between 2.2 and 3.2.2? I am starting from scratch. Should I pick 2.2 or 3.2.2? -Asif ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Re: [zeromq-dev] 2.2 and 3.2.2
3.2.2. If you are starting from scratch you should always you use the latest major revision. -- Justin Cook +44 7500 960 000 +1 682 738 5380 Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Wednesday, 20 March 2013 at 12:02, asif saeed wrote: Hi, What is the difference between 2.2 and 3.2.2? I am starting from scratch. Should I pick 2.2 or 3.2.2? -Asif ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org (mailto:zeromq-dev@lists.zeromq.org) http://lists.zeromq.org/mailman/listinfo/zeromq-dev ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Re: [zeromq-dev] zmq on Android via NDK
I installed Ubuntu on vmware and made the whole building process there, just in case something is wrong when i compile on my mac. Everything worked well, and I now do have the whole jzmq stuff, but unfortunately when I'm calling something from the zmq.h I still get the undefined reference. The whole jzmq stuff is only for working in java right? So I just need the libzmq.a file when I want to work with zeromq? Do I need to compile zeromq for android when I want to work in cpp? Can I just compile the c library and worm with it. I'm really glad if someone could help me solving this problem, sitting in it for nearly two weeks now. Von: Florian Eckerstorfer florian.eckerstor...@gmx.net Antworten an: ZeroMQ development list zeromq-dev@lists.zeromq.org Datum: Dienstag, 19. März 2013 16:09 An: ZeroMQ development list zeromq-dev@lists.zeromq.org Betreff: Re: [zeromq-dev] zmq on Android via NDK What do you mean by using the wrong ar, how can I change this? Von: Radu Braniste rbrani...@gmail.com Antworten an: ZeroMQ development list zeromq-dev@lists.zeromq.org Datum: Dienstag, 19. März 2013 16:06 An: zeromq-dev@lists.zeromq.org Betreff: Re: [zeromq-dev] zmq on Android via NDK zmq: no archive symbol table (run ranlib) It seems you are using the wrong ar for the static library (the one from macosx probably). Otherwise the library is loading now Radu ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.orghttp://lists.zeromq.org/mailman/listinfo/zeromq-d ev ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev
[zeromq-dev] Felix Geisendörfer's hack, C4 process
Hi, You might have seen Felix's pull request hack: http://felixge.de/2013/03/11/the-pull-request-hack.html We've been using something similar (C4) in libzmq and other projects for a while. Do people have opinion on whether we're enjoying C4, and whether it would be good to add contributors to the maintainers team for any given project on a more aggressive basis? E.g. once you make a patch that people like, you get commit rights (meaning you can merge other peoples' patches) automatically. -Pieter ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev