Re: [zeromq-dev] FW: Help With Regard To the ZMQ Forwarder

2012-03-20 Thread Symbian Projects
Ok the first question is i am back to zero, so now when my scripts are working i am able to send messages, the question of cleaning comes. i am using the following code for the forwarder and i think thats correct, but when i kill the process which is running the forwarder the SIGTERM signal is

[zeromq-dev] Check if forwarder is running

2012-03-20 Thread Symbian Projects
Hello All, In one of my past threads i got the zmq device forwarder working, now my exact use case is like i have arbitrary no of publishers and subscribers. First i start the ZMQ forwarder device, than i am starting the subscribers and than a single publisher to send the message. My

[zeromq-dev] Epolling on FD doesn't work for 2.1.11

2012-03-20 Thread Andrzej K. Haczewski
First of all I'd like to say hello to everyone, since this is my first post here. So: Hello, I've been trying to integrate ZeroMQ with libev event loop and I've hit a strange behavior (or a bug?). In particular, as anyone integrating with event loop, I've been watching (libev calls it like that)

[zeromq-dev] data collector pattern

2012-03-20 Thread Stephen Hemminger
The guide is full of wonderful and useful cases, but there is one that appears to be missing. For some applications there are lots of clients generating and one collector. The clients typically generate data like statistics or information (like a temperature sensor) that occurs periodically.

Re: [zeromq-dev] data collector pattern

2012-03-20 Thread Noah Gibbs
You could PUSH/PULL. You could also use ROUTER/DEALER, but I think PUSH/PULL is all you actually need. Basically the collector should bind as PULL and clients should connect to it with PUSH sockets. Then all the clients send PUSH when they have something to send and the collector receives

Re: [zeromq-dev] Check if forwarder is running

2012-03-20 Thread Cornelius Toole
Ronald, Do i need to close forwarder again and than start after each message sent by the publisher, or can i do something like i can start the forwarder first and next publisher check if the forwarder is running than just leverage the forwarder to send some messages to the subscriber. No

Re: [zeromq-dev] data collector pattern

2012-03-20 Thread Pieter Hintjens
On Tue, Mar 20, 2012 at 9:49 AM, Stephen Hemminger shemmin...@vyatta.com wrote: The guide is full of wonderful and useful cases, but there is one that appears to be missing. For some applications there are lots of clients generating and one collector. The clients typically generate data like

Re: [zeromq-dev] Limit socket queue size

2012-03-20 Thread Boris Gulay
19.03.2012 19:53, Johnny Gozde пишет: Boris, Socket options are exposed as properties on the Socket type. Please try setting the zmqSocket.HWM property directly. e.g., zmqSocket.HWM = 1; For me - not. I believe I'm using and old version of the binding. Can it be true?

Re: [zeromq-dev] Check if forwarder is running

2012-03-20 Thread Ronald Swain
Hello Cornelius , Thanks again and it will work for sure. Next and probably last question is why my sockets are not cleaned up in the forwarder, i try something like https://gist.github.com/2132163 but the handler is never fired. just to inform you i kill the python interpreter to close

Re: [zeromq-dev] Check if forwarder is running

2012-03-20 Thread Cornelius Toole
I forked and edited the gist with my changes and comments. I'm not really sure what's wrong, but you may be having a scope problem: https://gist.github.com/2138347 http://stackoverflow.com/questions/423379/using-global-variables-in-a-function-other-than-the-one-that-created-them incoming,

[zeromq-dev] Request for co-maintainer(s) for CZMQ

2012-03-20 Thread Pieter Hintjens
Hi all, This is a request for one or more people to volunteer as co-maintainers of CZMQ. Note that the job requires just the ability to merge pull requests and respect process. You don't actually have to write or review code. The goal is to get CZMQ conformant with the C4 process

Re: [zeromq-dev] Limit socket queue size

2012-03-20 Thread Johnny Gozde
On Tue, Mar 20, 2012 at 10:19 AM, Boris Gulay bo...@boressoft.ru wrote: For me - not. I believe I'm using and old version of the binding. Can it be true? It's entirely possible. The latest stable version of clrzmq is 2.2.2, downloadable from GitHub: https://github.com/zeromq/clrzmq/downloads

Re: [zeromq-dev] Request for co-maintainer(s) for CZMQ

2012-03-20 Thread Lourens Naudé
Hi Pieter, I am the author of a Ruby binding against czmq ( https://github.com/methodmissing/rbczmq ), am very familiar with the API and have an ongoing interest in it being compatible with libzmq and libxs releases. I would be open to maintain / review and manage process around contribution. -

[zeromq-dev] More on ZDCF

2012-03-20 Thread Steffen Mueller
Hi all, this is my first post to this list, so hi, I'm Steffen. Quite some time ago, I wrote the original Perl bindings for 0MQ, though the current Perl module's been rewritten and maintained by Daisuke Maki. I've always felt that writing applications with many components talking to one

Re: [zeromq-dev] Request for co-maintainer(s) for CZMQ

2012-03-20 Thread Pieter Hintjens
Lourens, Great, what's your github login? -Pieter On Tue, Mar 20, 2012 at 4:35 PM, Lourens Naudé lour...@methodmissing.com wrote: Hi Pieter, I am the author of a Ruby binding against czmq ( https://github.com/methodmissing/rbczmq ), am very familiar with the API and have an ongoing

Re: [zeromq-dev] More on ZDCF

2012-03-20 Thread Pieter Hintjens
On Tue, Mar 20, 2012 at 4:05 PM, Steffen Mueller m...@steffen-mueller.net wrote: I'd be really happy to get some feedback on both the ZMQ::Declare library and the suggestions regarding the ZDCF spec. First off, it's really nice to see someone picking up the ZDCF specs and running with them.

Re: [zeromq-dev] data collector pattern

2012-03-20 Thread Lucas Hope
On Wed, Mar 21, 2012 at 2:13 AM, Pieter Hintjens p...@imatix.com wrote: On Tue, Mar 20, 2012 at 9:49 AM, Stephen Hemminger shemmin...@vyatta.com wrote: The guide is full of wonderful and useful cases, but there is one that appears to be missing. For some applications there are lots of

Re: [zeromq-dev] Request for co-maintainer(s) for CZMQ

2012-03-20 Thread Lourens Naudé
Hi Pieter, Github handle: methodmissing - Lourens On Tue, Mar 20, 2012 at 10:20 PM, Pieter Hintjens p...@imatix.com wrote: Lourens, Great, what's your github login? -Pieter On Tue, Mar 20, 2012 at 4:35 PM, Lourens Naudé lour...@methodmissing.com wrote: Hi Pieter, I am the author

Re: [zeromq-dev] Request for co-maintainer(s) for CZMQ

2012-03-20 Thread Pieter Hintjens
Lourens, OK, you're now added! Please read http://rfc.zeromq.org/spec:16 since that is our goal (the RFC can of course change as we find aspects that are wrong). -Pieter On Tue, Mar 20, 2012 at 7:27 PM, Lourens Naudé lour...@methodmissing.com wrote: Hi Pieter, Github handle: methodmissing

Re: [zeromq-dev] Check if forwarder is running

2012-03-20 Thread Ronald Swain
Hmmm i tried using your code but , its not working too. :-( Regarding PyZMQ version i am using pyzmq 2.1.11 which have same version of libzmq i guess. And i am on a 64 bit windows machine. Date: Tue, 20 Mar 2012 12:44:57 -0500 From: cornelius.to...@gmail.com To: zeromq-dev@lists.zeromq.org

Re: [zeromq-dev] Check if forwarder is running

2012-03-20 Thread Michel Pelletier
Signals are a unix concept. Not that I would know, but I'm guessing there is some funkyness with the way python signals work on Windows as this blog post implies: http://danielkaes.wordpress.com/2009/06/04/how-to-catch-kill-events-with-python/ In the Linux world catching “kill events” would be