Re: [zeromq-dev] Libev integration problem: Stop receiving ZMQ_EVENTS events

2012-12-09 Thread CheYi Lin
I'm using zmq 3.2.2 stable GCC 4.4.6 20120305 (Red Hat 4.4.6-4) x86_64 CentOS 6.3 2.6.32-279.14.1.el6.x86_64 Regards, Cheyi On Mon, Dec 10, 2012 at 3:36 PM, CheYi Lin wrote: > Hi, > > I'm doing some zmq ROUTER-to-ROUTER experiments in my distributed > system prototype. > (single threaded, libev

[zeromq-dev] Libev integration problem: Stop receiving ZMQ_EVENTS events

2012-12-09 Thread CheYi Lin
Hi, I'm doing some zmq ROUTER-to-ROUTER experiments in my distributed system prototype. (single threaded, libev event loop based application) Below is my test steps: 1. ROUTER A and B start, set unique identity, bind the address. (handshake) 2. A connect to B. 3. A send HELLO to B continuously.

Re: [zeromq-dev] ubuntu : Error: could not find libjava.so when trying to compile java already installed

2012-12-09 Thread MListUser
Hi, On Sun, Dec 09, 2012 at 02:18:58PM +0200, Meir Yanovich wrote: >hello all >i trying to compile zeromq jzmq lib in linux , >but when i get error when the make gettes to this point : > > jzmq-master$ jar cf zmq.jar org/zeromq/*.class >Error: could not find libjava.so >Error: could n

Re: [zeromq-dev] Event Identified

2012-12-09 Thread Lourens Naudé
Correct - sorry, my bad. On Sun, Dec 9, 2012 at 11:10 PM, Doron Somech wrote: > Hi, > > I'm not sure, i think (not sure) the ZMQ_FD is returning the mailbox > socket (signaler) and not the tcp socket. > > > On Mon, Dec 10, 2012 at 1:07 AM, Lourens Naudé > wrote: > >> Hi Doron, >> >> Or you coul

Re: [zeromq-dev] Event Identified

2012-12-09 Thread Doron Somech
Hi, I'm not sure, i think (not sure) the ZMQ_FD is returning the mailbox socket (signaler) and not the tcp socket. On Mon, Dec 10, 2012 at 1:07 AM, Lourens Naudé wrote: > Hi Doron, > > Or you could also use the ZMQ_FD socket option > against zmq::socket_base_t::getsockopt (int option_, void *opt

Re: [zeromq-dev] Event Identified

2012-12-09 Thread Lourens Naudé
Hi Doron, Or you could also use the ZMQ_FD socket option against zmq::socket_base_t::getsockopt (int option_, void *optval_, size_t *optvallen_) and not change the engine interface ... On Sun, Dec 9, 2012 at 11:01 PM, Doron Somech wrote: > Hi, > > Because of security needs I need to know th

[zeromq-dev] Event Identified

2012-12-09 Thread Doron Somech
Hi, Because of security needs I need to know the ip address of each socket connecting to my system (matching identity to ip address). I'm using dealer-router, the router is the one doing the bind and the dealer connecting, i thought about adding a new event called Event Identified or something tha

Re: [zeromq-dev] Discussion on ROUTER action

2012-12-09 Thread Pieter Hintjens
Min, I think it's accurate to return EAGAIN when the pipe is full, as compared to EHOSTUNREACH when the identity is unknown, and both triggered by the same ZMQ_ROUTER_MANDATORY option. -Pieter On Sun, Dec 9, 2012 at 10:22 PM, Yu Dongmin wrote: > Hello, > > OK, now an issue seems to be > > - Do

Re: [zeromq-dev] Discussion on ROUTER action

2012-12-09 Thread Yu Dongmin
Hello, OK, now an issue seems to be - Do an application need to distinguish between the target pipe is full and doesn't exist - What would be a desired action when pipe is full ? (Now it silently drops and returns a success) - What is the expected behaviour on ZMQ_ROUTER_MANDATORY when pipe is

Re: [zeromq-dev] ZMQ_XPUB_VERBOSE does not report unsubscriptions

2012-12-09 Thread Pieter Hintjens
On Sun, Dec 9, 2012 at 6:24 PM, Stefan Radomski wrote: > And of what use is ZMQ_XPUB_VERBOSE if I can't know the number of subscribers? In any case you're not guaranteed to receive an ubsubscribe, if subscribers disappear without sending those. -Pieter __

Re: [zeromq-dev] dynamic discovery problem

2012-12-09 Thread Pieter Hintjens
On Sun, Dec 9, 2012 at 6:26 PM, Stefan Radomski wrote: > And so we all write distributed pub/sub systems =) > https://github.com/tklab-tud/umundo Very nice. Zyre is similar but with its own UDP-and-0MQ based discovery, without the serialization (transfers binary frames), and with file transfer

Re: [zeromq-dev] ZMQ_XPUB_VERBOSE does not report unsubscriptions

2012-12-09 Thread Ian Barber
On Sun, Dec 9, 2012 at 5:24 PM, Stefan Radomski < radom...@tk.informatik.tu-darmstadt.de> wrote: > Hi there, > > setting the ZMQ_XPUB_VERBOSE option on an XPUB socket will only report > multiple subscriptions - for unsubscription, only the last unsubscription > is reported. This makes the option u

Re: [zeromq-dev] dynamic discovery problem

2012-12-09 Thread Stefan Radomski
And so we all write distributed pub/sub systems =) https://github.com/tklab-tud/umundo Maybe we can coordinate our efforts sometime soon. Stefan On Dec 9, 2012, at 1:56 PM, Domenico Maria Giffone mailto:domenico.giff...@gmail.com>> wrote: Zyre is a very exciting news for me because it fills a

[zeromq-dev] ZMQ_XPUB_VERBOSE does not report unsubscriptions

2012-12-09 Thread Stefan Radomski
Hi there, setting the ZMQ_XPUB_VERBOSE option on an XPUB socket will only report multiple subscriptions - for unsubscription, only the last unsubscription is reported. This makes the option unusable to count actual subscribers as some might already have unsubscribed and you'd never know. Is the

Re: [zeromq-dev] dynamic discovery problem

2012-12-09 Thread Domenico Maria Giffone
Zyre is a very exciting news for me because it fills an important gap. Congratulations! BTW a few weeks ago, to become familiar with JeroMQ, I tried to build a prototype in Java in which the function of service discovery is based on ZeroConf. You can find it here: https://bitbucket.org/dgiffone/

[zeromq-dev] ubuntu : Error: could not find libjava.so when trying to compile java already installed

2012-12-09 Thread Meir Yanovich
hello all i trying to compile zeromq jzmq lib in linux , but when i get error when the make gettes to this point : jzmq-master$ jar cf zmq.jar org/zeromq/*.class Error: could not find libjava.so Error: could not find Java 2 Runtime Environment. i do have all java jdk installed m and

Re: [zeromq-dev] Discussion on ROUTER action

2012-12-09 Thread Doron Somech
Hi, Min i took a look at the code and in case of pipe full or identity doesn't exist you are returning the same error, right? i think it better in case the pipe is full to return eagain, then the SocketBase send method will continue to try sending the message until timeout or message is sent. also