Re: [zeromq-dev] Question about zmq_socket_monitor()

2018-12-12 Thread Luca Boccassi
technically in use. IIRC inproc sockets events are processed from the "connecting" socket's thread, so try to run something (ie: zmq_getsockopt zmq_events) on the connecting inproc before the third call and see if that helps. -- Kind regards, Luca Boccassi signature.asc Description: This is a digita

Re: [zeromq-dev] Call for testers - please help validate libzmq 4.3.0

2018-11-19 Thread Luca Boccassi
On Sun, 2018-11-04 at 11:26 +, Luca Boccassi wrote: > Hi, > > I'm preparing to tag libzmq 4.3.0 (new APIs marked as stable), it > would > be great if more folks could help with validation, with your > application and use cases. This release is ABI-compatible all the w

Re: [zeromq-dev] Compatibility of Socket Types and Protocols

2018-11-16 Thread Luca Boccassi
gt; > Another question would I have is: To what extend is it possible to  > binding and connecting sockets to multiple addresses with different  > protocols? > > Kind Regards, > >    Stephan Protocols cannot be mixed, they must match. -- Kind regards, Luca Boccassi signature.asc De

[zeromq-dev] [Fwd: FOSDEM 2019 Software Defined Networking Devroom CFP]

2018-11-05 Thread Luca Boccassi
ubmit a proposal. > > As you know FOSDEM has zero marketing budget, we would be grateful > if  > you could help spread the word, by forwarding this email to > interested  > people and mailing lists. > > - The FOSDEM 2019 Software Defined Networking Devroom Team --

Re: [zeromq-dev] dealing with stale github issues

2018-11-04 Thread Luca Boccassi
but yes old issues rot. For libzmq perhaps > > something like 2 years would be more appropriate. > > -- > wes > wesyoung.me > > ___ > zeromq-dev mailing list > zeromq-dev@lists.zeromq.org > https://lists.zeromq.org/mailman/li

[zeromq-dev] Call for testers - please help validate libzmq 4.3.0

2018-11-04 Thread Luca Boccassi
release, 4.2.5. Any issues should be reported of course, but at this point only regressions will be considered as blockers. Thanks! -- Kind regards, Luca Boccassi signature.asc Description: This is a digitally signed message part ___ zeromq-dev mailing list

Re: [zeromq-dev] Help using VSCode to build libzmq

2018-11-02 Thread Luca Boccassi
re that could give me some pointers > on > how to build LIBZMQ (or any of the ZMQ projects) using VSCode? > > Appreciate any pointers, > Osiris Hi, I'm not an expert, but I believe if you import/use CMake in VS it should "just work" (TM) -- Kind regards, Luca Boccassi

Re: [zeromq-dev] PUB-SUB using XPUB-XSUB

2018-10-21 Thread Luca Boccassi
On Sun, 21 Oct 2018, 22:16 Hiren Shah, wrote: > Currently I already have PUB-SUB set-up with Curve Security. I have > multiple PUB each using different key for encryption. > > I want to change it to use XPUB-XSUB which is straight forward. I don't > see example or documentation how to use

Re: [zeromq-dev] Can zmq_connect/zmq_disconnect be invoked on a socket while zmq_proxy_steerable() is running in a separate thread for the same socket?

2018-10-18 Thread Luca Boccassi
On Thu, 2018-10-18 at 17:07 +0100, Luca Boccassi wrote: > On Thu, 2018-10-18 at 15:05 +, martin.belan...@dell.com wrote: > > I'm designing a multi-node pub-sub pattern (each node is a separate > > computer running Debian Linux). The number of nodes is configurable > > and

Re: [zeromq-dev] Can zmq_connect/zmq_disconnect be invoked on a socket while zmq_proxy_steerable() is running in a separate thread for the same socket?

2018-10-18 Thread Luca Boccassi
t; in-flight messages. That is, when TERMINATE is received by Thread1, > does it drop any of the messages it's currently processing? > What's the best approach? Is there another (safer) way to do this? > > Thanks, > Martin PUB/SUB So

Re: [zeromq-dev] dealing with stale github issues

2018-09-30 Thread Luca Boccassi
sues that we know have been solved - I've done this last year, Simon did it more recently, but yes old issues rot. For libzmq perhaps something like 2 years would be more appropriate. -- Kind regards, Luca Boccassi signature.asc Description: This is a digitally signed message part ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org https://lists.zeromq.org/mailman/listinfo/zeromq-dev

Re: [zeromq-dev] Unsubscribe

2018-09-27 Thread Luca Boccassi
____ > > zeromq-dev mailing list > > zeromq-dev@lists.zeromq.org > > https://lists.zeromq.org/mailman/listinfo/zeromq-dev > > > > ___ > zeromq-dev mailing list > zeromq-dev@lists.zeromq.org > https://lists.zeromq.org/mailman/listinfo/zeromq-dev -- Kind regards, Luca Boccassi signature.asc Description: This is a digitally signed message part ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org https://lists.zeromq.org/mailman/listinfo/zeromq-dev

Re: [zeromq-dev] Revisited: Example for building against ZMQ with CMake + UDP Multicast Support

2018-09-26 Thread Luca Boccassi
That said, I'll have a look and see if I can add a +draft to the version number of draft builds in OBS so that they work out as higher. Given they are in a separate repo it's reasonable to assume they are intended to have priority. On Wed, 26 Sep 2018 at 22:06, Luca Boccassi wrote: > >

Re: [zeromq-dev] Revisited: Example for building against ZMQ with CMake + UDP Multicast Support

2018-09-26 Thread Luca Boccassi
repo, right? > > The actual best solution in my opinion would be to have a libzmq3draft-dev > and libzmq5draft in ubuntu as well... > > So I did switch to the rolling one and it finally works. :D > > > On 26.09.2018 18:47, Luca Boccassi wrote: > > Right, I thou

Re: [zeromq-dev] Revisited: Example for building against ZMQ with CMake + UDP Multicast Support

2018-09-26 Thread Luca Boccassi
with using > the native version supplied by the OS . > > Thanks! > > Bill > > > > On Sep 26, 2018, at 11:36 AM, Luca Boccassi > m> wrote: > > > > In case the base system is missing a dependency, everything that is > > needed is shipped in the sam

Re: [zeromq-dev] Revisited: Example for building against ZMQ with CMake + UDP Multicast Support

2018-09-26 Thread Luca Boccassi
downgrades. On Wed, 2018-09-26 at 18:08 +0200, Stephan again wrote: > Well... thats not the case for "release-draft". There it is 4.2.5 > and  > ubuntu provides 4.2.5-1. > > Doh! > > > On 26.09.2018 18:02, Luca Boccassi wrote: > > The packages from OBS ha

Re: [zeromq-dev] Revisited: Example for building against ZMQ with CMake + UDP Multicast Support

2018-09-26 Thread Luca Boccassi
niverse > _i18n_Translation-en >    MD5: 7b2c1e47f6d305566aebc0e65e04f5ee > > So in my opinion the zeromq repo should have priority over the ubuntu > repo. > > Further investigating. Help is welcome. > > - Stephan > > > On 26.09.2018 17:21, Luca Bo

Re: [zeromq-dev] Revisited: Example for building against ZMQ with CMake + UDP Multicast Support

2018-09-26 Thread Luca Boccassi
covery.cpp:(.text+0x37f): undefined reference to > > > > > > `zmq_join' > > > > > > Discovery.cpp:(.text+0x3c3): undefined reference to > > > > > > `zmq_join' > > > > > > Discovery.cpp:(.text+0x407): undefined reference to > > > > > > `zmq_join' > > > > > > Discovery.cpp:(.text+0x57c): undefined reference to > > > > > > `zmq_join' > > > > > > Discovery.cpp:(.text+0x668): undefined reference to > > > > > > `zmq_leave' > > > > > > collect2: error: ld returned 1 exit status > > > > > > > > > > > > Any help is welcome. :) > > > > > > > > > > > > Kind Regards > > > > > > > > > > > >   Stephan > > > > > > > > > > > > > > > > > > ___ > > > > > > zeromq-dev mailing list > > > > > > zeromq-dev@lists.zeromq.org <mailto:zeromq-dev@lists.zeromq > > > > > > .org> > > > > > > https://lists.zeromq.org/mailman/listinfo/zeromq-dev > > > > > > <https://lists.zeromq.org/mailman/listinfo/zeromq-dev> > > > > > > > > > > > > > > > > > > > > ___ > > > > > zeromq-dev mailing list > > > > > zeromq-dev@lists.zeromq.org <mailto:zeromq-dev@lists.zeromq.o > > > > > rg> > > > > > https://lists.zeromq.org/mailman/listinfo/zeromq-dev > > > > > <https://lists.zeromq.org/mailman/listinfo/zeromq-dev> > > > > > > > > ___ > > > > zeromq-dev mailing list > > > > zeromq-dev@lists.zeromq.org <mailto:zeromq-dev@lists.zeromq.org > > > > > > > > > https://lists.zeromq.org/mailman/listinfo/zeromq-dev > > > > <https://lists.zeromq.org/mailman/listinfo/zeromq-dev> > > > > > > > > > > > > ___ > > > > zeromq-dev mailing list > > > > zeromq-dev@lists.zeromq.org <mailto:zeromq-dev@lists.zeromq.org > > > > > > > > > https://lists.zeromq.org/mailman/listinfo/zeromq-dev > > > > <https://lists.zeromq.org/mailman/listinfo/zeromq-dev> > > > > > > > > > > > > ___ > > > zeromq-dev mailing list > > > zeromq-dev@lists.zeromq.org <mailto:zeromq-dev@lists.zeromq.org> > > > https://lists.zeromq.org/mailman/listinfo/zeromq-dev > > > <https://lists.zeromq.org/mailman/listinfo/zeromq-dev> > > > > ___ > > zeromq-dev mailing list > > zeromq-dev@lists.zeromq.org > > https://lists.zeromq.org/mailman/listinfo/zeromq-dev > > ___ > zeromq-dev mailing list > zeromq-dev@lists.zeromq.org > https://lists.zeromq.org/mailman/listinfo/zeromq-dev -- Kind regards, Luca Boccassi signature.asc Description: This is a digitally signed message part ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org https://lists.zeromq.org/mailman/listinfo/zeromq-dev

Re: [zeromq-dev] Revisited: Example for building against ZMQ with CMake + UDP Multicast Support

2018-09-26 Thread Luca Boccassi
> > > > >     Discovery.cpp:(.text+0x30e): undefined reference to > > > > > `zmq_leave' > > > > >     Discovery.cpp:(.text+0x37f): undefined reference to > > > > > `zmq_join' > > > > >     Discovery.cpp:(.text+0x3c3): undefined reference to > > > >

Re: [zeromq-dev] Get a list of all topics

2018-09-19 Thread Luca Boccassi
nt to know if there is a way I can publish all available > > > topics > > > > and receive a list of all the available topics to subscribe to? > > > > > > Thank you for your help. > > > ___ > &g

Re: [zeromq-dev] FOSDEM 2019 - annual ZeroMQ meetup/hackaton

2018-09-16 Thread Luca Boccassi
On Fri, 2018-03-30 at 19:20 +0100, Luca Boccassi wrote: > On Fri, 2018-03-30 at 17:15 +0100, Luca Boccassi wrote: > > Hello, > > > > Yes, it's not even 2 months since FOSDEM 2018, I know :-) > > > > But the dates for FOSDEM 2019 have been officially announced,

Re: [zeromq-dev] Possible bug in ZMQ HWM handling?

2018-09-04 Thread Luca Boccassi
t; > > takes a > > > while but in the end the SUB receives all the 1 messages... > > > > > > Is there an explanation for this? Who buffered all those messages > > > (against my will) ? > > > > > > Thanks for any hint! > > > Francesco > > > > > > > > > > > ___ > zeromq-dev mailing list > zeromq-dev@lists.zeromq.org > https://lists.zeromq.org/mailman/listinfo/zeromq-dev -- Kind regards, Luca Boccassi signature.asc Description: This is a digitally signed message part ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org https://lists.zeromq.org/mailman/listinfo/zeromq-dev

Re: [zeromq-dev] triggering process_commands on inactive sockets

2018-08-24 Thread Luca Boccassi
ailman/listinfo/zeromq-dev> > > ___ > > zeromq-dev mailing list > > zeromq-dev@lists.zeromq.org > > https://lists.zeromq.org/mailman/listinfo/zeromq-dev > > ___ > zeromq-dev mailing list > zeromq-dev@lists.zeromq.org > https://lists.zeromq.org/mailman/listinfo/zeromq-dev -- Kind regards, Luca Boccassi signature.asc Description: This is a digitally signed message part ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org https://lists.zeromq.org/mailman/listinfo/zeromq-dev

Re: [zeromq-dev] triggering process_commands on inactive sockets

2018-08-24 Thread Luca Boccassi
to run into it. > > > > > > Thanks in advance for any suggestions! > > > > > > ___ > > > zeromq-dev mailing list > > > zeromq-dev@lists.zeromq.org <mailto:zeromq-dev@lists.zeromq.org> &g

Re: [zeromq-dev] Release new libzmq version

2018-08-23 Thread Luca Boccassi
w sockets are defined in the ZMTP RFC, which should really happen for the benefit of all the other implementations. -- Kind regards, Luca Boccassi ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org https://lists.zeromq.org/mailman/listinfo/zeromq-dev

Re: [zeromq-dev] Release new libzmq version

2018-08-16 Thread Luca Boccassi
On Thu, 2018-08-16 at 14:45 +0100, Luca Boccassi wrote: > On Thu, 2018-08-16 at 13:25 +, simon.giese...@btc-ag.com wrote: > > Hi, > > > > what about doing a new libzmq release? I am not sure if it should > > be > > called 4.2.6 or 4.3.0. There have been l

Re: [zeromq-dev] Release new libzmq version

2018-08-16 Thread Luca Boccassi
. > I am a bit confused that the master currently specified version > 4.3.1, although there has never been a 4.3.0 AFAIK. That was my mistake, unfortunately I noticed a few days later and it's not wise to go backward with versions. We can live with skipping a number I think. -- Kind r

Re: [zeromq-dev] zmq crash when using PGM

2018-08-14 Thread Luca Boccassi
oblem. > > Thanks a lot in advance. > Ming Are you using a socket from multiple threads by any chance? -- Kind regards, Luca Boccassi signature.asc Description: This is a digitally signed message part ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org https://lists.zeromq.org/mailman/listinfo/zeromq-dev

Re: [zeromq-dev] Blocking when receiving multipart messages

2018-08-08 Thread Luca Boccassi
processes multi-part messages must use the > *ZMQ_RCVMORE* > zmq_getsockopt(3) <http://api.zeromq.org/3-3:zmq_getsockopt> option > after > calling *zmq_msg_recv()* to determine if there are further parts to > receive. > > Wouldn't it be simpler and more efficient to use zmq_msg_

[zeromq-dev] [IRC] temporary restriction to registered users on zeromq channel

2018-08-02 Thread Luca Boccassi
if this causes issues to anybody. -- Kind regards, Luca Boccassi [1] https://freenode.net/news/spambot-attack [2] https://freenode.net/kb/answer/registration signature.asc Description: This is a digitally signed message part ___ zeromq-dev mailing list zeromq

Re: [zeromq-dev] Need advice on ZMQ_STREAM socket, zmq_recv truncating data

2018-08-02 Thread Luca Boccassi
upplied buffer as much as > possible (as opposed to truncating) and if there are still some more > data to be read then zmq_getsockop of ZMQ_RCVMORE would return > more=1. > > Thanks for any help. Read the zmq_socket manpage for details on what the multipart is used for with the stream socket. --

Re: [zeromq-dev] ZMQ_DONTWAIT and EINTR

2018-07-07 Thread Luca Boccassi
o - messages are delivered to the application atomically. -- Kind regards, Luca Boccassi signature.asc Description: This is a digitally signed message part ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org https://lists.zeromq.org/mailman/listinfo/zeromq-dev

Re: [zeromq-dev] Pipeline Reliability

2018-07-03 Thread Luca Boccassi
onsider moving away from ZMQ to nanomsg or nng]. > > Thanks, 1) Don't close/reopen the socket, you can avoid blocking with DONTWAIT by itself 2) Enable the heartbeat options for faster automated disconnects and reconnects -- Kind regards, Luca Boccassi signature.asc Description: This is a digitally signed message part ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org https://lists.zeromq.org/mailman/listinfo/zeromq-dev

Re: [zeromq-dev] ZMQ_PAIR over TCP

2018-06-20 Thread Luca Boccassi
___ > zeromq-dev mailing list > zeromq-dev@lists.zeromq.org > https://lists.zeromq.org/mailman/listinfo/zeromq-dev -- Kind regards, Luca Boccassi signature.asc Description: This is a digitally signed message part ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org https://lists.zeromq.org/mailman/listinfo/zeromq-dev

Re: [zeromq-dev] ZMQ_PAIR over TCP

2018-06-18 Thread Luca Boccassi
bind should fail for anything other than inproc so > > > > people don’t > > > > make mistakes and assume it’s going to work. > > > > > > > > > > > > > > > > Thanks > > > > > > > > > >

Re: [zeromq-dev] What are the platform requirements

2018-06-17 Thread Luca Boccassi
On Sun, 2018-06-17 at 14:58 -0600, Henry Smith wrote: > Does 0MQ require an operating system (Linux, OSX, Windows, etc)? It works on all currently used *nix systems and all Windows version from XP and up. -- Kind regards, Luca Boccassi signature.asc Description: This is a digitally sig

Re: [zeromq-dev] ZeroMQ and UDP

2018-06-09 Thread Luca Boccassi
doesn't make sense for much else as well - it's lossy, so it doesn't work for non-lossy patterns, and it doesn't support multipart so it won't work for pub/sub. -- Kind regards, Luca Boccassi signature.asc Description: This is a digitally signed message part

Re: [zeromq-dev] Client/Server Socket Prospects?

2018-06-06 Thread Luca Boccassi
n appetite for > risk tolerance, but any insight would be appreciated. > > Thanks, > Graeme Cunningham. When it's ready (TM) Note that the docs have been updated, and the current socket types are un-deprecated as many users expressed the need to keep them (for multipart support)

Re: [zeromq-dev] Need help with Client-Server pattern

2018-06-04 Thread Luca Boccassi
On Mon, 2018-06-04 at 08:52 -0400, vincent freedom wrote: > I see, thanks. > > I am guessing it's going to be release pretty soon since it made it > into > man pages. Any ideas when? There is work to do yet, so no firm plan on when those new APIs will be moved to stable. -- Kin

Re: [zeromq-dev] Need help with Client-Server pattern

2018-06-04 Thread Luca Boccassi
ad.html?project=network%3Amessaging%3Azeromq%3Arelease-draft=libzmq3-dev Of course note that DRAFT means the API/ABI might get incompatible changes at any time without any prior notice and thus break your application. -- Kind regards, Luca Boccassi signature.asc Description: This

Re: [zeromq-dev] Why PUB and SUB sockets don't use multi-part messages?

2018-05-31 Thread Luca Boccassi
fic reason for doing concatenation, instead of using > the > first part of a multi-part message? > > Regards, > Dev You can use a separate frame (first one) for the topic if you wish. It will work, but it's not mandatory. -- Kind regards, Luca Boccassi

Re: [zeromq-dev] [Tech support] SUB socket filter with reverse logic

2018-05-31 Thread Luca Boccassi
> messages containing that keyword? Check the ZMQ_INVERT_MATCHING socket option -- Kind regards, Luca Boccassi signature.asc Description: This is a digitally signed message part ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org https://lists.zer

Re: [zeromq-dev] cppzmq revival and RFC on design goals and supported platforms

2018-05-24 Thread Luca Boccassi
; E-Mail: simon.giese...@btc-ag.com > > > > Rechtliche Hinweise: > > www.btc-ag.com/impressum.htm > > Handelsregister: Amtsgericht Oldenburg HRB 4717 > > Aufsichtsratsvorsitzender: Michael Heidkamp > > Vorstand: Dr. Jörg Ritter, Dirk Thole > > > > ___ > > zeromq-dev mailing list > > zeromq-dev@lists.zeromq.org > > https://lists.zeromq.org/mailman/listinfo/zeromq-dev > > > > ___ > zeromq-dev mailing list > zeromq-dev@lists.zeromq.org > https://lists.zeromq.org/mailman/listinfo/zeromq-dev -- Kind regards, Luca Boccassi signature.asc Description: This is a digitally signed message part ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org https://lists.zeromq.org/mailman/listinfo/zeromq-dev

Re: [zeromq-dev] Sharing socket safely between threads

2018-05-08 Thread Luca Boccassi
er > design to achieve something like this? > > Thank you in advance! Use inproc/pair sockets - they are made and used extensively for inter- thread communication. -- Kind regards, Luca Boccassi signature.asc Description: This is a digitally signed message part _

Re: [zeromq-dev] Performance measurements question

2018-05-03 Thread Luca Boccassi
at 16:13 +0300, Ernest Zed wrote: > If I get ping ~50us and zmq performance reports ~50us it means that > zmq has > virtually zero overhead, right? > > On Thu, May 3, 2018 at 4:05 PM, Luca Boccassi <luca.bocca...@gmail.co > m> > wrote: > > > On Thu, 2018-05

Re: [zeromq-dev] Performance measurements question

2018-05-03 Thread Luca Boccassi
could expect > from zmq > when running local/remote_lat test? 25, 50, 100, 200us? > > Sincerely, > Ernest The environment can vary the performances, so you should simply measure it and see what's it like with your hardware and network. -- Kind regards, Luca Boccassi signature.asc De

Re: [zeromq-dev] IPv6 multicast RADIO/DISH

2018-04-27 Thread Luca Boccassi
On Fri, 2018-04-27 at 15:00 +0200, Lionel Flandrin wrote: > On Fri, Apr 27, 2018 at 01:36:13PM +0100, Luca Boccassi wrote: > > On Fri, 2018-04-27 at 14:29 +0200, Lionel Flandrin wrote: > > > On Thu, Apr 26, 2018 at 10:58:33AM +0100, Luca Boccassi wrote: > > > > On

Re: [zeromq-dev] IPv6 multicast RADIO/DISH

2018-04-27 Thread Luca Boccassi
On Fri, 2018-04-27 at 14:29 +0200, Lionel Flandrin wrote: > On Thu, Apr 26, 2018 at 10:58:33AM +0100, Luca Boccassi wrote: > > On Thu, 2018-04-26 at 10:55 +0200, Lionel Flandrin wrote: > > > On Thu, Apr 26, 2018 at 09:23:13AM +0100, Luca Boccassi wrote: > > > > On

Re: [zeromq-dev] IPv6 multicast RADIO/DISH

2018-04-26 Thread Luca Boccassi
On Thu, 2018-04-26 at 10:55 +0200, Lionel Flandrin wrote: > On Thu, Apr 26, 2018 at 09:23:13AM +0100, Luca Boccassi wrote: > > On Thu, 2018-04-26 at 10:00 +0200, Lionel Flandrin wrote: > > > Hello everyone, > > > > > > I'm trying to build a multicast protocol

Re: [zeromq-dev] IPv6 multicast RADIO/DISH

2018-04-26 Thread Luca Boccassi
ause nobody bothered to implement it? > > Thank you for your help (and your great library), UDP right now supports only ipv4 - it's a work in progress: https://github.com/zeromq/libzmq/issues/2891 PUB/SUB with PGM or NORM should do what you are looking for. -- Kind regards, Luca Boccassi signatu

Re: [zeromq-dev] Exiting a child thread

2018-04-17 Thread Luca Boccassi
zmq_term) the > context for the child but nothing happens. How do I safely leave the > thread and move on with my code i.e. close the sockets and destroy > the context for the proxy, destruct the streaming class, and move to > operate on the message sink? > > Thanks in advance > B

Re: [zeromq-dev] Only first X messages received with PGM/0MQ c++ setup

2018-04-16 Thread Luca Boccassi
On Mon, 2018-04-16 at 18:25 +0200, Johnny Berentsen wrote: > 2018-04-16 14:35 GMT+02:00 Luca Boccassi <luca.bocca...@gmail.com>: > > > On Mon, 2018-04-16 at 13:54 +0200, Johnny Berentsen wrote: > > > 2018-04-02 15:30 GMT+02:00 Johnny Berentsen <johnny.ber

Re: [zeromq-dev] Only first X messages received with PGM/0MQ c++ setup

2018-04-16 Thread Luca Boccassi
quot; << > msg_str.length() << std::endl; > } > } > } > > Compilation: > g++ -c -m64 -pipe -g -std=gnu++1y -Wall -W -D_REENTRANT -fPIC > -DZMQ_HAVE_OPENPGM -isystem /usr/include/pgm-4.2 -o server.o > server.cc > g++ -m64 -o server server.o -lzmq -lpgm -lprotobuf > g++ -c -m64 -pipe -g -std=gnu++1y -Wall -W -D_REENTRANT -fPIC > -DZMQ_HAVE_OPENPGM -isystem /usr/include/pgm-4.2 -o client.o > client.cc > g++ -m64 -o client client.o -lzmq -lpgm -lprotobuf > > # Start on machine 1 > ./server > # Start on machine 2 > ./client > ___ > zeromq-dev mailing list > zeromq-dev@lists.zeromq.org > https://lists.zeromq.org/mailman/listinfo/zeromq-dev -- Kind regards, Luca Boccassi signature.asc Description: This is a digitally signed message part ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org https://lists.zeromq.org/mailman/listinfo/zeromq-dev

Re: [zeromq-dev] Czmq Windows mingw32 build: dllimport

2018-04-13 Thread Luca Boccassi
Autoconf should work and it's your best bet with mingw, what is the problem exactly? On Fri, 13 Apr 2018, 18:53 Kevin Wang, wrote: > Hi all, > I have been developing on Linux for the past few months and it is time to > also port my code to windows for some customers.

Re: [zeromq-dev] User-space polling of ZMQ sockets

2018-04-12 Thread Luca Boccassi
_poll can > > > use, and > > > there are apparently significant performance differences between > > > them.  My > > > understanding of the conventional wisdom is that epoll is > > > preferable to > > > poll, which is preferable to select — but I don

Re: [zeromq-dev] Connecting sockets with different ZeroMQ contexts

2018-04-12 Thread Luca Boccassi
you can imagine, other transports work fine as that's basically like having 2 different processes talking to each other -- Kind regards, Luca Boccassi signature.asc Description: This is a digitally signed message part ___ zeromq-dev mailing list

Re: [zeromq-dev] User-space polling of ZMQ sockets

2018-04-11 Thread Luca Boccassi
n the socket using non- blocking receives when poll wakes up (taking care of using heuristic to avoid starving the other sockets), so that you can process multiple messages per poll -- Kind regards, Luca Boccassi signature.asc Description: This is a digitally signed message part __

Re: [zeromq-dev] Linger vs inproc

2018-04-09 Thread Luca Boccassi
ely You can never guarantee that, simply because they are inherently conflicting statements. If you set linger to -1 and the other end exits prematurely then you'll block. If the application is too slow it will break the block limit. Most importantly, don't create sockets continuously. It's an an

Re: [zeromq-dev] Immediate and linger on ROUTER socket

2018-04-09 Thread Luca Boccassi
cannot remember exactly, it's used to decide what to do at some stage(s) in the pipes management > -Opprinnelig melding- > Fra: zeromq-dev [mailto:zeromq-dev-boun...@lists.zeromq.org] På vegne > av Luca Boccassi > Sendt: 6. april 2018 23:56 > Til: ZeroMQ development list &

Re: [zeromq-dev] Pub/Sub scalability over TCP vs epgm/pgm

2018-04-09 Thread Luca Boccassi
tem and your application. It might be negligible, or it might not. -- Kind regards, Luca Boccassi signature.asc Description: This is a digitally signed message part ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org https://lists.zeromq.org/mailman/listinfo/zeromq-dev

Re: [zeromq-dev] Installation errors on Windows 10

2018-04-09 Thread Luca Boccassi
s.  > > With kindest regards, > Chandra cppzmq is a header with c++ wrappers, you don't need it to get started, you can use just libzmq -- Kind regards, Luca Boccassi signature.asc Description: This is a digitally signed message part ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org https://lists.zeromq.org/mailman/listinfo/zeromq-dev

Re: [zeromq-dev] Immediate and linger on ROUTER socket

2018-04-06 Thread Luca Boccassi
l unroutable messages, when will it matter what the > Linger value is? When they are routable but not yet sent > Kind regards > Harald Nøkland > Senior Robotics Engineer > > -Opprinnelig melding- > Fra: zeromq-dev [mailto:zeromq-dev-boun...@lists.zeromq.org] På ve

Re: [zeromq-dev] Immediate and linger on ROUTER socket

2018-04-06 Thread Luca Boccassi
socket types:all Applicable socket types:all, only for connection-oriented transports. -- Kind regards, Luca Boccassi signature.asc Description: This is a digitally signed message part ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org

Re: [zeromq-dev] FOSDEM 2019 - annual ZeroMQ meetup/hackaton

2018-03-30 Thread Luca Boccassi
On Fri, 2018-03-30 at 17:15 +0100, Luca Boccassi wrote: > Hello, > > Yes, it's not even 2 months since FOSDEM 2018, I know :-) > > But the dates for FOSDEM 2019 have been officially announced, > February > the 2nd and 3rd: > > https://fosdem.org/2018/news/2018-03-30-d

Re: [zeromq-dev] FOSDEM 2019 - annual ZeroMQ meetup/hackaton

2018-03-30 Thread Luca Boccassi
On Fri, 2018-03-30 at 18:23 +0200, Benjamin Henrion wrote: > On Fri, Mar 30, 2018 at 6:15 PM, Luca Boccassi <luca.boccassi@gmail.c > om> wrote: > > Hello, > > > > Yes, it's not even 2 months since FOSDEM 2018, I know :-) > > > > But the dates for

[zeromq-dev] FOSDEM 2019 - annual ZeroMQ meetup/hackaton

2018-03-30 Thread Luca Boccassi
afar to get cheaper airfare and accommodation. So, same procedure as every year? Thursday and Friday at Hackerspace HSBXL? Benjamin, is that ok? Can we go on and book it already? -- Kind regards, Luca Boccassi signature.asc Description: This is a digitally signed message part

Re: [zeromq-dev] zeromq-dev Digest, Vol 24, Issue 13

2018-03-24 Thread Luca Boccassi
end(, output); > assert(rc == 0); > > rnum1 = 0; > rnum2 = 0; > rc = zsock_recv(input, "is4", , , ); > assert(rc == 0); > std::cout << "Received " << rnum1 << ", " << rstr << &quo

Re: [zeromq-dev] zframe compatible w/zsock picture?

2018-03-24 Thread Luca Boccassi
zframe sender with a picture receiver (and vice > versa)? The docs imply yes: “The picture is a string that defines the > type of each frame.” > > Thanks, > Joe Yes, see selftest for an example: https://github.com/zeromq/czmq#zsock---high-level-socket-api-that-hides-libzmq-c

Re: [zeromq-dev] [External] Re: A PGM/EPGM question

2018-03-23 Thread Luca Boccassi
VENTS on both PUB and > > SUB. > > > > > > > > Nothing seems to work in terms of triggering the PUB to react and > > process > > the NAKs received from remote SUB. Looking at the code a bit I see > > this > > function zmq::pgm_socket_t::process_ups

Re: [zeromq-dev] Reconnecting the Client side of a REQ-REP socket

2018-03-23 Thread Luca Boccassi
between thread1 and thread2, and then instead of doing zmq_recv do zmq_poll in thread1 on both the req socket and the inproc one - that way the poll will be interrupted when thread2 sends the updated endpoint, and you can take it from there in thread 1 (disconnect/connect). > On Fri, Mar 23,

Re: [zeromq-dev] Reconnecting the Client side of a REQ-REP socket

2018-03-23 Thread Luca Boccassi
resolve > this? If the endpoint stays the same look at the heartbeats options. If the endpoint changes, you'll need to zmq_disconnect and zmq_connect -- Kind regards, Luca Boccassi signature.asc Description: This is a digitally signed message part ___

[zeromq-dev] [maintainers of ZMTP implementations] ZMTP 3.1 and application metadata

2018-03-15 Thread Luca Boccassi
ion please make sure that, even if the feature is not supported, at least the handshake is not broken. It should be fine, but just in case. -- Kind regards, Luca Boccassi signature.asc Description: This is a digitally signed message part ___ zeromq-dev mai

Re: [zeromq-dev] zpoller and lvcache backend socket misses new subscribers to duplicate topic

2018-03-08 Thread Luca Boccassi
On 8 Mar 2018 21:14, "Rich Schramm" wrote: I am trying to implement lvcache from example with the czmq vsn 4.1.0. api I want to send last value from cache to any new subscriber to a topic. My problem is that only the first subscriber to a topic is seems to trigger an event for

Re: [zeromq-dev] Consequences of using same keys on multiple servers or clients in CurveZMQ

2018-03-08 Thread Luca Boccassi
> > > Which is maybe pointing to there being a problem. > > If I have to use different keys for every server and client, then > CurveZMQ > probably isn't tenable for my use. I'm really looking for a "give the > new > lab member or temperature-monitoring-raspberry-pi

Re: [zeromq-dev] Test test_pair_tcp.cpp hangs at bounce()

2018-02-28 Thread Luca Boccassi
tests fail? Or only that one? You can try and add socket monitors to check that the handshake succeeds: https://github.com/zeromq/libzmq/blob/master/doc/zmq_socket_monitor.txt Alternatively, given it's a tcp test, you can use wireshark/tshark with the zmtp dissector to snoop on the wire: ht

Re: [zeromq-dev] are zmq::atomic_ptr_t<> Helgrind warnings known?

2018-02-25 Thread Luca Boccassi
would be interesting. Luca is saying that ZMQ is basically > race-free, but I have never seen any documentation on how that is > achieved or verified. From a quick look at the code, it appears that > ZMQ uses a combination of plain old pthread mutexes along with > knowledge of ZMQ’s internal threading architecture to know when > mutexes are unnecessary.   The queues and pipes use atomic pointer-swapping and a lock-free single-writer-single-reader algorithm (somewhat similar, although much simpler and focused for a single use case, to some of the data structures provided by liburcu) You can see the implementation in ypipe.hpp and yqueue.hpp, they are both fairly small. -- Kind regards, Luca Boccassi signature.asc Description: This is a digitally signed message part ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org https://lists.zeromq.org/mailman/listinfo/zeromq-dev

Re: [zeromq-dev] are zmq::atomic_ptr_t<> Helgrind warnings known?

2018-02-24 Thread Luca Boccassi
e, and > > > just > > > happened to notice that the TSAN docs use ZeroMQ as one of the > > > example > > > suppressions:  https://github.com/google/san > > > itizers/wiki/ThreadSanitizerSuppressions > > > > > > I assume that the reason fo

Re: [zeromq-dev] Multiple connects with a ZMQ_REQ socket appears not to work

2018-02-23 Thread Luca Boccassi
nnection status changes, but you cannot get info on the message queues (intentionally). Have a read of the zguide, there should be plenty information of various failover patterns: http://zguide.zeromq.org/ -- Kind regards, Luca Boccassi signature.asc Description: This is a digitally signed mess

Re: [zeromq-dev] Multiple connects with a ZMQ_REQ socket appears not to work

2018-02-23 Thread Luca Boccassi
On Fri, 2018-02-23 at 19:18 +, Mark wrote: > On 23Feb18, Luca Boccassi allegedly wrote: > > That's because it's round-robin, and the connection is async - so > > it > > will wait on the first server to respond, and it never does so it's > > blocked there. Sound

Re: [zeromq-dev] are zmq::atomic_ptr_t<> Helgrind warnings known?

2018-02-23 Thread Luca Boccassi
with  zmq::atomic_ptr_t<>? > > Thanks, > Francesco Yeah I started trying to put together a suppression file but never finished it: https://github.com/bluca/libzmq/commit/fb9ee9da7631f9506cbfcd6db29a284ae6e9651e Hope to have time to finish working on it eventually (feel free t

Re: [zeromq-dev] Multiple connects with a ZMQ_REQ socket appears not to work

2018-02-23 Thread Luca Boccassi
if you tune the tcp reconnect options to have a small timeout, so that the pipe is removed - by default it's quite large. Note sure it will work - try it. -- Kind regards, Luca Boccassi signature.asc Description: This is a digitally signed message part ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org https://lists.zeromq.org/mailman/listinfo/zeromq-dev

Re: [zeromq-dev] [RFC] Proposed changes to C4 to formalise requirements for API status transition from "draft" to "stable"

2018-02-19 Thread Luca Boccassi
On Mon, 2018-02-19 at 11:00 +0100, Benjamin Henrion wrote: > On Feb 19, 2018 10:33, "Luca Boccassi" <luca.bocca...@gmail.com> > wrote: > > On Mon, 2018-02-19 at 10:10 +0100, Michal Vyskocil wrote: > > Hi, > > > > Thanks for proposal, just gave my

Re: [zeromq-dev] [RFC] Proposed changes to C4 to formalise requirements for API status transition from "draft" to "stable"

2018-02-19 Thread Luca Boccassi
e :-) > Michal > > > On Sun, Feb 18, 2018 at 9:52 PM, Luca Boccassi <luca.boccassi@gmail.c > om> > wrote: > > > Hello, > > > > We have been using the draft/stable status for API for a few years > > now, > > but the exact requirements for a tran

[zeromq-dev] [RFC] Proposed changes to C4 to formalise requirements for API status transition from "draft" to "stable"

2018-02-18 Thread Luca Boccassi
/ac42b46a2acdd34e473a73a43e2b5b5724216390 Please provide comments/acks/nacks on the PR: https://github.com/zeromq/rfc/pull/128 -- Kind regards, Luca Boccassi signature.asc Description: This is a digitally signed message part ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org

Re: [zeromq-dev] Problems with Majordomo and the new czmq API

2018-02-16 Thread Luca Boccassi
version of > czmq? > > > Peter Arseneau I think the codebase was updated, but not sure if the examples have - note that Majordomo development is pretty much halted, most of the work these days happens on Malamute https://github.com/zeromq/malamute -- Kind regards, Luca Boccassi

Re: [zeromq-dev] czmq examples / reactor shut down

2018-02-16 Thread Luca Boccassi
loop_reader (...) // as many other readers as you need zsock_signal (pipe, 0); while (!zsys_interrupted) { if (zloop_start (loop) != 0) break; // termination received } // zsock_destroy (...) // if any zloop_destroy (); } --

Re: [zeromq-dev] Is there a reasonable way to use an existing PKI and D/TLS with 0MQ?

2018-02-14 Thread Luca Boccassi
ansport is not simple plug but neither is too hard - apart from the new mechanism subclass, which should be not too difficult as the interface is fairly small, it would need some changes in a few other places - with those we can help eventually. > On Feb 13, 2018, at 5:42 PM, Luca Boccassi <luca

Re: [zeromq-dev] Is there a reasonable way to use an existing PKI and D/TLS with 0MQ?

2018-02-13 Thread Luca Boccassi
On Tue, 2018-02-13 at 17:03 -0500, John Lane Schultz wrote: > I’m new to 0MQ, so please excuse my ignorance about it.  I read the > guide book, the blog entries on CurveZMQ, looked at the directory of > 0MQ GitHub repositories, and googled around to see if anyone had > added a D/TLS layer into

Re: [zeromq-dev] How to get data a ZMQ_PUB service?

2018-02-13 Thread Luca Boccassi
erated from the same script ... > > Can I write a ZMQ_PUBLISHER entity which receive data from external > data > source / application ... ? Sure, data can come from anywhere. The protocol/library is completely data agnostic. You can even use zmq_proxy to "connect" different ends

Re: [zeromq-dev] zyre use case

2018-02-13 Thread Luca Boccassi
here is no central phone server > (asterisk, freeswitch), and people should be able to call each > other... > > Best, IPv6 support is there for *NIX (IIRC not implemented on Windows) so it might work, your mileage might vary depending on the network itself. -- Kind regards, Luca

Re: [zeromq-dev] Server Socket Initiate Communication

2018-02-10 Thread Luca Boccassi
join or leave > (different from crashing or network partitions). In such a peer to > peer > network the symmetry of each peer binding a server socket to itself > and > talking to other peers seems appealing. Thank you For P2P networks check out zyre https://github.com/zerom

Re: [zeromq-dev] FOSDEM 2018 - ZeroMQ gathering/hackaton?

2018-02-05 Thread Luca Boccassi
On Sun, 2017-08-27 at 18:20 +0100, Luca Boccassi wrote: > Hello, > > FOSDEM 2018 dates have been announced, it will be on Saturday 3rd and > Sunday 4th of February. [1] > > Would people be interested in replicating last year's 2-days ZMQ > gathering/hackaton before FOSDEM?

Re: [zeromq-dev] FOSDEM 2018 - ZeroMQ gathering/hackaton?

2018-02-01 Thread Luca Boccassi
On Sun, 2017-08-27 at 18:20 +0100, Luca Boccassi wrote: > Hello, > > FOSDEM 2018 dates have been announced, it will be on Saturday 3rd and > Sunday 4th of February. [1] > > Would people be interested in replicating last year's 2-days ZMQ > gathering/hackaton before FOSDEM?

Re: [zeromq-dev] FOSDEM 2018 - ZeroMQ gathering/hackaton?

2018-01-31 Thread Luca Boccassi
> > Hi, > > > > I will arrive on Wednesday evening as well, so we could meet > > somewhere :) I > > am staying near the Etterbeek Station. > > > > I have to leave somewhat early on Thursday, but will be there all > > day > > on > > Friday

Re: [zeromq-dev] FOSDEM 2018 - ZeroMQ gathering/hackaton?

2018-01-30 Thread Luca Boccassi
> > I have to leave somewhat early on Thursday, but will be there all day > on > Friday. > > Best regards > Simon > > -Ursprüngliche Nachricht- > Von: zeromq-dev [mailto:zeromq-dev-boun...@lists.zeromq.org] Im > Auftrag von > Luca Boccassi > Gesendet: Freitag, 26.

Re: [zeromq-dev] Communication between C++ zmq client and Python zmq Server

2018-01-27 Thread Luca Boccassi
> > > print("Received message from Sofa: {}".format(message)) > > > > > > # print("Received message from c++ %s" % message) > > > > > > > > > > > > # Do some 'work' > > > > > > time.sleep(1) > > > > > > > > > > > > # Send reply back to client > > > > > > # socket.send(b"Hola cliente, muy bien y tu ?") > > > > > > # print('Response sent') > > > > > > > > > > > > > > > > > > > > > > > > The output or the message which arrive to python zmq server > > > > > > is the > > > > > > symbols characters of the btnState: > > > > > > > > > > > > (cnvss_test) ➜  Python git:(ZMQCommunication) ✗ python > > > > > > server.py > > > > > > ZMQ Server listening ... > > > > > > *Received message from Sofa: > > > > > > b"\x00'\x84)\xff\x7f\x00\x00\x98&*" > > > > > > > > > > > > Likely, As I in my python server I am representing like  a > > > > > > string > > > > > > message arrived and I am sending from my c++ client a int > > > > > > btnState > > > > > > data, > > > > > > then I try convert int to string in  the python server > > > > > > side: > > > > > > > > > > > > And I replace this line > > > > > > > > > > > > print("Received message from Sofa: {}".format(message)) > > > > > > > > > > > > by thiis line > > > > > > > > > > > > print("Received message from c++ %s" % str(message)) > > > > > > > > > > > > But my output is: > > > > > > > > > > > > (cnvss_test) ➜  Python git:(ZMQCommunication) ✗ python > > > > > > server.py > > > > > > ZMQ Server listening ... > > > > > > *Received message from c++ > > > > > > b'\x00^n&\xff\x7f\x00\x00\xd8\\'* > > > > > > Traceback (most recent call last): > > > > > >   File "server.py", line 19, in > > > > > > message = socket.recv() > > > > > >   File "zmq/backend/cython/socket.pyx", line 693, in > > > > > > zmq.backend.cython.socket.Socket.recv > > > > > >   File "zmq/backend/cython/socket.pyx", line 727, in > > > > > > zmq.backend.cython.socket.Socket.recv > > > > > >   File "zmq/backend/cython/socket.pyx", line 150, in > > > > > > zmq.backend.cython.socket._recv_copy > > > > > >   File "zmq/backend/cython/socket.pyx", line 145, in > > > > > > zmq.backend.cython.socket._recv_copy > > > > > >   File "zmq/backend/cython/checkrc.pxd", line 25, in > > > > > > zmq.backend.cython.checkrc._check_rc > > > > > > zmq.error.ZMQError: Operation cannot be accomplished in > > > > > > current state > > > > > > (cnvss_test) ➜  Python git:(ZMQCommunication) ✗ > > > > > > > > > > > > I follow getting the characters symbolss. > > > > > > My question is: How to can I represent the arrived message > > > > > > in my > > > > > > python zmq server to show their content ? > > > > > > According to this behavior, can I assume that the btnState > > > > > > data is > > > > > > sent to python server of anyway? > > > > > > > > > > > > Any support or orientation will be highly appreciated > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ___ > > > > > > zeromq-dev mailing list > > > > > > zeromq-dev@lists.zeromq.org > > > > > > https://lists.zeromq.org/mailman/listinfo/zeromq-dev > > > > > > > > > > > > > > > > ___ > > > > > zeromq-dev mailing list > > > > > zeromq-dev@lists.zeromq.org > > > > > https://lists.zeromq.org/mailman/listinfo/zeromq-dev > > > > > > > > > > > > > ___ > > > > > > zeromq-dev mailing list > > > zeromq-dev@lists.zeromq.org > > > https://lists.zeromq.org/mailman/listinfo/zeromq-dev > > > > > > > ___ > > zeromq-dev mailing list > > zeromq-dev@lists.zeromq.org > > https://lists.zeromq.org/mailman/listinfo/zeromq-dev > > > > > > ___ > zeromq-dev mailing list > zeromq-dev@lists.zeromq.org > https://lists.zeromq.org/mailman/listinfo/zeromq-dev -- Kind regards, Luca Boccassi signature.asc Description: This is a digitally signed message part ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org https://lists.zeromq.org/mailman/listinfo/zeromq-dev

Re: [zeromq-dev] Publishers stops sending data after sometime. Subscriber is required to fix publisher

2018-01-27 Thread Luca Boccassi
t; - > > > > Thanks > > > > Ravi > > > > ___ > > > > zeromq-dev mailing list > > > > zeromq-dev@lists.zeromq.org > > > > https://lists.zeromq.org/mailman/listinfo/zeromq-dev > &g

Re: [zeromq-dev] FOSDEM 2018 - ZeroMQ gathering/hackaton?

2018-01-26 Thread Luca Boccassi
> at HXBL > on Thursday at 8am to take the keys. > > See you next week. > > Cheers > Kevin > > Am 24.01.2018 10:16 nachm. schrieb "Benjamin Henrion" <zoobab@gmail.c > om>: > > On Wed, Jan 24, 2018 at 9:54 PM, Luca Boccassi <luca.boccassi@gm

Re: [zeromq-dev] FOSDEM 2018 - ZeroMQ gathering/hackaton?

2018-01-24 Thread Luca Boccassi
On Sun, 2017-08-27 at 18:20 +0100, Luca Boccassi wrote: > Hello, > > FOSDEM 2018 dates have been announced, it will be on Saturday 3rd and > Sunday 4th of February. [1] > > Would people be interested in replicating last year's 2-days ZMQ > gathering/hackaton before FOSDEM?

Re: [zeromq-dev] CZMQ zsys layer

2018-01-22 Thread Luca Boccassi
case. > > If someone deeply familiar with the zsys_layer could comment on this > it would be awesome.  My C skills aren't up to making a pull request > though, I work in C++. > > Thanks, > > Stephen. -- Kind regards, Luca Boccassi signature.asc Description: This is a digitally signed message part ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org https://lists.zeromq.org/mailman/listinfo/zeromq-dev

  1   2   3   4   5   >