Re: [zeromq-dev] Why socket.send will block without consumer

2013-03-19 Thread Justin Karneges
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:

Re: [zeromq-dev] Why socket.send will block without consumer

2013-03-19 Thread Min
Hi, The HWM is a maximum buffer length (not actually identical). For PUSH, send will block if it reach the HWM. Thanks Min On Wednesday, March 20, 2013, He Jie Xu wrote: > Hi, all > > I try zeromq with following code: > > import zmq > import random > import time > > context = zmq.Context() > s

[zeromq-dev] Why socket.send will block without consumer

2013-03-19 Thread He Jie Xu
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

Re: [zeromq-dev] Signaler.cpp hangs on windows intermittently

2013-03-19 Thread Pau
Hi, I had this problem some weeks ago. This was my problem: I do not know all possible reasons to generate a fatal wsa_assert(..) but there is at least one: I have seen that in XP it is possible that line 301 rc = connect (*w_, (sockaddr *) &addr, sizeof (addr)); returns an error when a socket

Re: [zeromq-dev] Signaler.cpp hangs on windows intermittently

2013-03-19 Thread Steven McCoy
On 19 March 2013 12:18, Felipe Farinon wrote: > The code > HANDLE sync = CreateEvent (&sa, FALSE, TRUE, TEXT > ("Global\\zmq-signaler-port-sync")); > > in signaler.cpp:262 hangs intermittently when starting zeromq context > through zmq_init in my application. I'm not able to reproduce this bug > w

[zeromq-dev] Signaler.cpp hangs on windows intermittently

2013-03-19 Thread Felipe Farinon
Hi, The code HANDLE sync = CreateEvent (&sa, FALSE, TRUE, TEXT ("Global\\zmq-signaler-port-sync")); in signaler.cpp:262 hangs intermittently when starting zeromq context through zmq_init in my application. I'm not able to reproduce this bug with a minimal test case. I'm running my application

Re: [zeromq-dev] zmq on Android via NDK

2013-03-19 Thread Florian Eckerstorfer
What do you mean by using the wrong "ar", how can I change this? Von: Radu Braniste Antworten an: ZeroMQ development list Datum: Dienstag, 19. März 2013 16:06 An: Betreff: Re: [zeromq-dev] zmq on Android via NDK > zmq: no archive symbol table (run ranlib) > It seems you are using the wr

Re: [zeromq-dev] zmq on Android via NDK

2013-03-19 Thread Radu Braniste
> > 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.org http://list

Re: [zeromq-dev] Another question about building Zeromq on Windows with OpenPGM

2013-03-19 Thread Steven McCoy
On 19 March 2013 10:43, Emmanuel TAUREL wrote: > While building OpenPGM 5.1.118 (in order to then build Zmq 3.2.2), I > notice that the libpgm library is generated as a static library but > compiled > with the code generation option "Multi Threaded DLL". > Is there any reason for this? I thought

Re: [zeromq-dev] zmq on Android via NDK

2013-03-19 Thread Florian Eckerstorfer
Okay I tried this, but i doesn't change anything still this error: zmq: no archive symbol table (run ranlib) Von: Radu Braniste Antworten an: ZeroMQ development list Datum: Dienstag, 19. März 2013 15:29 An: Betreff: Re: [zeromq-dev] zmq on Android via NDK >> >> I tried this version

[zeromq-dev] Another question about building Zeromq on Windows with OpenPGM

2013-03-19 Thread Emmanuel TAUREL
Hello all, While building OpenPGM 5.1.118 (in order to then build Zmq 3.2.2), I notice that the libpgm library is generated as a static library but compiled with the code generation option "Multi Threaded DLL". Is there any reason for this? I thought that if you compile a static lib, you should

Re: [zeromq-dev] zmq on Android via NDK

2013-03-19 Thread Radu Braniste
-- >> >> I tried this version of including the Library before, but it didn't work. >> >> LOCAL_LDLIBS += -llog -lm -ljnigraphics -l >> /Users/florianeckerstorfer/Programmieren/Workspace_Android/ImageBabbleJNI/jn >> i/libzmq.a >> >> >> >> > it should be: LOCAL_LDLIBS +=

Re: [zeromq-dev] zmq on Android via NDK

2013-03-19 Thread Florian Eckerstorfer
I tried this version of including the Library before, but it didn't work. LOCAL_LDLIBS += -llog -lm -ljnigraphics -l /Users/florianeckerstorfer/Programmieren/Workspace_Android/ImageBabbleJNI/jn i/libzmq.a I used the path with the ­l command, Problem is that i get an error: Š.libzmq.a: no archi

Re: [zeromq-dev] zmq on Android via NDK

2013-03-19 Thread Radu Braniste
On Mon, Mar 18, 2013 at 3:13 AM, Florian Eckerstorfer < > florian.eckerstor...@gmx.net> wrote: > > > I am developing on a MacBook Pro with OSX 10.7.5. I followed the steps > > from the http://www.zeromq.org/build:android to build a static zmq.a > > Library, unfortunately i can't build the whole Jav

Re: [zeromq-dev] zmq::mtrie_t::rm_helper(..)

2013-03-19 Thread Pau
I am still facing a hang in Windows XP with Publish/Subscribe. I have not been capable to do a test case to reproduce it properly but I have some data and some questions. What is crashing (I am getting the info from a release build debugging sesion, so data info is not reliable but the stack is

Re: [zeromq-dev] zmq on Android via NDK

2013-03-19 Thread Florian Eckerstorfer
Yeah I followed the rules how to compile the libzmq for android, and it worked. I get a static library. I tried to change the ./configure line, but I always get a static library, so I think the library should work. But how can I link it correctly in my Android Project. How can I use the prebuilt li

Re: [zeromq-dev] zmq on Android via NDK

2013-03-19 Thread Victor Perron
Then restrict yourself to the description for libzmq.so alone, nope ? Removing --enable-static --disable-shared in the ./configure line should do the trick maybe. On Tue, Mar 19, 2013 at 12:30 AM, Florian Eckerstorfer < florian.eckerstor...@gmx.net> wrote: > The Problem really is, that I have the

Re: [zeromq-dev] zmq on Android via NDK

2013-03-19 Thread Florian Eckerstorfer
The Problem really is, that I have the libzmq.a compiled, this one should work, and I don't need the whole Java Stuff, but I get the I think it's linker errors, like the one I posted before. I have seen your description of how to compile the whole stuff, but I don't think I need the libjzmq and the