Re: [zeromq-dev] [PATCH] Add msg_t::label flag

2011-05-22 Thread Martin Sustrik
Hi Fabien, >> +Bit 1 (LABEL): _This message part is not part of the original >> +message._ A value of 1 indicate a message part that weren't part >> of +the original stream. They are used internally by the >> transport to +indicate, for example, the origin of a message. + >> +Bits 2-7: _Reserved

Re: [zeromq-dev] [PATCH] Improved response to socket violations

2011-05-22 Thread Martin Sustrik
On 05/23/2011 03:22 AM, Ian Barber wrote: > > > On Fri, May 20, 2011 at 4:50 PM, Martin Lucina > wrote: > > 3) Last but not least, IMHO libraries should *not* print "helpful" > messages. This leads to horrible practices, for example start a > random Gtk > a

Re: [zeromq-dev] [PATCH] Introduces bi-directional pipes

2011-05-22 Thread Martin Sustrik
Hi Fabien, Thanks for review! > 1. I don't think you should leave a printf in the code (in owns.cpp). Oops! > 2. Based on past experience with a similar structure, you should used a > class policy instead of the N parameter in the array_t template. It > would allow more flexible and clearer co

Re: [zeromq-dev] Meetup in Seat^H^H SF/ Bay Area

2011-05-22 Thread Dhammika Pathirana
On Fri, May 20, 2011 at 4:40 PM, Pieter Hintjens wrote: > On Fri, May 20, 2011 at 8:10 PM, Jon Gifford wrote: > >> plenty of places nearby: 83 Proof, Louies, Kate O'Briens, The Irish Bank, >> Harringtons, Tadich, Salt House, Rickhouse, ... > > I've tentatively put up 7pm on June 1st on the wiki.

Re: [zeromq-dev] I'm losing messages doing 2 way heartbeat checks

2011-05-22 Thread MinRK
Hi, I think you might be getting caught up with the fact that zmq FD events are edge-triggered. When you have a handler registered for a POLLIN event, it must handle *all* available incoming messages, otherwise if you have multiple incoming messages ready at the same time, you will only handle on

[zeromq-dev] I'm losing messages doing 2 way heartbeat checks

2011-05-22 Thread Joseph Bowman
Hello, I'm new to ZeroMQ. After reading about it and going through the guide, I had the idea of building a self configuring load balancing application using the Least Recently Used methodology demonstrated throughout the guide. I've started work, and I've run into my first problem that I've beat

Re: [zeromq-dev] [PATCH] Improved response to socket violations

2011-05-22 Thread Ian Barber
On Fri, May 20, 2011 at 4:50 PM, Martin Lucina wrote: > 3) Last but not least, IMHO libraries should *not* print "helpful" > messages. This leads to horrible practices, for example start a random Gtk > application; you will more often than not see all sorts of assertion > failures and other crap

Re: [zeromq-dev] Is a possible to purge the transmit buffer?

2011-05-22 Thread Helge Früh
No, the sender HWM applies to each queue independently. Further, if a peer is offline nothing is queued for it, unless it's using durable sockets, which is a disrecommended pattern since it'll rapidly kill publishers. Understood. The example was referring to durable subscribers. So there is no

Re: [zeromq-dev] [PATCH] Introduces bi-directional pipes

2011-05-22 Thread Fabien Niñoles
Nice work, which certainly make some features easier. Two remarks however: 1. I don't think you should leave a printf in the code (in owns.cpp). 2. Based on past experience with a similar structure, you should used a class policy instead of the N parameter in the array_t template. It would allo

Re: [zeromq-dev] Is a possible to purge the transmit buffer?

2011-05-22 Thread Pieter Hintjens
On Sun, May 22, 2011 at 8:35 PM, Helge Früh wrote: > Maybe I can rephrase my question. If you have three subscribers A, B and C, > where A is online and B and C are offline. > You further have a HWD of 100 on the publisher. Than you publish (send) 100 > messages. > In my understanding the follo

Re: [zeromq-dev] Is a possible to purge the transmit buffer?

2011-05-22 Thread Helge Früh
Hi Pieter, > The output queues exist independently per subscriber. So there is no > "emergency mode" for the publisher. thanks for your answer, Pieter. Actually that does confuse me even more :| Maybe I can rephrase my question. If you have three subscribers A, B and C, where A is online and

[zeromq-dev] Virtual device layer... UDP

2011-05-22 Thread Pieter Hintjens
Hi, I've been working on a concept, userspace virtual transports for 0MQ. The idea is to build in-process bridges that connect apps to other transports via inproc sockets. I've got a proof of concept working for UDP (actually more than a PoC), here https://github.com/pieterh/zvtran/tree/master/v2

Re: [zeromq-dev] iOS build

2011-05-22 Thread Nick Forte
I've been able to use the Obj-C bindings + libzmq in both the simulator and real hardware. I had to include the source for everything in my xcodeproject rather than building separate static libraries and linking those in (I'm sure it could be done with a little bit of effort). If you need it, I c

Re: [zeromq-dev] ZmqSocket.as - talk to zmq from ActionScript

2011-05-22 Thread Pieter Hintjens
2011/5/22 Брюгеман Артур : > I've written a ZmqSocket.as, a TCP socket wrapper which simplifies the job > of talking to zmq sockets from ActionScript. If you are writing a Flash > application with zmq on the server side, it might be useful. It's available > at http://code.google.com/p/zmqsocket-as

Re: [zeromq-dev] ZmqSocket.as - talk to zmq from ActionScript

2011-05-22 Thread Martin Sustrik
Hi Artur, > I've written a ZmqSocket.as, a TCP socket wrapper which simplifies the > job of talking to zmq sockets from ActionScript. If you are writing a > Flash application with zmq on the server side, it might be useful. It's > available at http://code.google.com/p/zmqsocket-as/ > > It passes m

[zeromq-dev] ZmqSocket.as - talk to zmq from ActionScript

2011-05-22 Thread Брюгеман Артур
Hi! I've written a ZmqSocket.as, a TCP socket wrapper which simplifies the job of talking to zmq sockets from ActionScript. If you are writing a Flash application with zmq on the server side, it might be useful. It's available at http://code.google.com/p/zmqsocket-as/ It passes my simple tests

Re: [zeromq-dev] Installing ZMQ for PHP

2011-05-22 Thread Ian Barber
On Sun, May 22, 2011 at 3:28 PM, Bouke Versteegh wrote: > I have tried to install ZMQ for PHP, but it doesn't work. I've compiled the > Git > code, used PECL and downloaded the latest source and compiled that. > Looks like you're on an old version of libzmq - which version do you have? Ian _

[zeromq-dev] Installing ZMQ for PHP

2011-05-22 Thread Bouke Versteegh
I have tried to install ZMQ for PHP, but it doesn't work. I've compiled the Git code, used PECL and downloaded the latest source and compiled that. Compiling source from GIT, or using PECL, I get: php: symbol lookup error: /usr/lib/php5/20090626+lfs/zmq.so: undefined symbol: zmq_version Compili