Re: [zeromq-dev] jzmq-api 0.1.0
On Thu, 2017-11-23 at 18:42 -0600, Stephen Riesenberg wrote: > Hello, > > I'd like to announce the first release of jzmq-api, > org.zeromq/jzmq-api-0.1.0 on Maven Central. Keep in mind this API is > still > in its infancy, but with time will begin to formalize. > > See some of the recent changes here: > https://github.com/zeromq/jzmq-api/blob/master/CHANGELOG.md > > Download it here: https://repo1.maven.org/maven2/org/zeromq/jzmq-api/ > 0.1.0/ > > Currently, this library is built on JeroMQ (v0.3.6), but can be run > on top > of jzmq as well. Docs for how to do this will be coming soon. > > Feedback welcome, as are contributions. Check out the repository and > log an > issue or feature request here: https://github.com/zeromq/jzmq-api > > Thanks, and have a great Thanksgiving (for stateside ØMQers)! Great stuff! -- 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] Call for testing for libzmq 4.2.3
Great, thank you! On Fri, 2017-11-24 at 16:43 +0100, Francesco wrote: > Hi Luca, > I investigated a little more this issue today and I spotted that it > was a > false alarm. > Long story short: for several reasons I need to store shared > libraries in a > specific place (not inside Linux standard folders); to ensure my > binaries > can find the shared libraries I inject into libzmq the GCC -Xlinker > -rpath > /my/path option. The result is that regardless of libtool automagic > LD_LIBRARY_PATH adjustments the tests were running against the > outdated > libzmq version inside /my/path. After updating > /my/path/libzmq.so.5.1.3 the > tests pass just fine, included test_req_relaxed. > > I will start testing libzmq in my company's bigger software next week > and > will let you know... > > Thanks, > Francesco > > > > 2017-11-21 17:10 GMT+01:00 Luca Boccassi: > > > The closest I can get to that is on the Ubuntu 16.04 OBS build, > > where > > the test passes: > > > > https://build.opensuse.org/build/network:messaging:zeromq:git-draft > > /xUb > > untu_16.04/x86_64/libzmq/_log > > > > Ubuntu 16.04, gcc 5.3.1, libc 2.23, libstdc++ 5.3.1 - not quite the > > same, but couldn't see how it could affect that test :-/ > > > > On Tue, 2017-11-21 at 16:59 +0100, Francesco wrote: > > > Hi Luca, > > > The environment is: > > > - Ubuntu 16.04 (but I tested also on Centos 7 same result) > > > - gcc 5.3.0 compiled from sources with default > > > options (NOTE > > > this is > > > not gcc 5.5.0) > > > - glibc 2.22 > > > - libstdc++.so.6.0.21 > > > > > > Before update IIRC the tests were passing except for random > > > failures > > > of > > > test_security_zap. > > > > > > Francesco > > > > > > > > > 2017-11-21 16:30 GMT+01:00 Luca Boccassi > > >: > > > > > > > Thanks for the report, unfortunately I can't repro with GCC 5.5 > > > > (the > > > > closest I can get on Debian to 5.3). What's the full > > > > environment? > > > > OS, > > > > libc, libstdc++ > > > > > > > > On Tue, 2017-11-21 at 14:30 +0100, Francesco wrote: > > > > > Hi Luca, > > > > > I grabbed latest libzmq-master and rebuilt it with the GCC > > > > > for > > > > > our > > > > > production software (gcc 5.3) and I always get the following > > > > > test > > > > > failure: > > > > > > > > > > > > > > > zeromq 4.2.3: ./test-suite.log > > > > > > > > > > > > > > > # TOTAL: 90 > > > > > # PASS: 89 > > > > > # SKIP: 0 > > > > > # XFAIL: 0 > > > > > # FAIL: 1 > > > > > # XPASS: 0 > > > > > # ERROR: 0 > > > > > > > > > > .. contents:: :depth: 2 > > > > > > > > > > FAIL: tests/test_req_relaxed > > > > > > > > > > > > > > > lt-test_req_relaxed: tests/test_req_relaxed.cpp:118: int > > > > > main(): > > > > > Assertion > > > > > `events == 2' failed. > > > > > FAIL tests/test_req_relaxed (exit status: 134) > > > > > > > > > > > > > > > I will try to debug that in the next days as soon as I have > > > > > some > > > > > time... > > > > > Btw I'm building WITHOUT libsodium and with draft features > > > > > turned > > > > > on. I > > > > > don't know if this makes any difference. > > > > > > > > > > Francesco > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 2017-11-17 19:00 GMT+01:00 Brian Knox via zeromq-dev < > > > > > zeromq-dev@lists.zeromq.org>: > > > > > > > > > > > Hi Luca! I'll run some of my test suites against it later > > > > > > today > > > > > > and > > > > > > see if > > > > > > anything breaks. > > > > > > > > > > > > On Fri, Nov 17, 2017 at 11:05 AM Luca Boccassi > > > > > si@g > > > > > > mail > > > > > > .com> > > > > > > wrote: > > > > > > > > > > > > > Hi, > > > > > > > > > > > > > > With https://github.com/zeromq/libzmq/issues/2733 duct- > > > > > > > taped > > > > > > > the > > > > > > > major > > > > > > > blocker for releasing libzmq 4.2.3 is gone. I am > > > > > > > currently > > > > > > > compiling > > > > > > > the changelog. > > > > > > > > > > > > > > It would be great if folks with applications using 4.2.2 > > > > > > > could > > > > > > > test > > > > > > > 4.2.3 and report any regressions that they eventually > > > > > > > find. > > > > > > > > > > > > > > -- > > > > > > > Kind regards, > > > > > > > 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 > > > > > > > > > > > > > > > > > > > > > > ___ > > > > > zeromq-dev mailing list > > > > > zeromq-dev@lists.zeromq.org > > >
Re: [zeromq-dev] Call for testing for libzmq 4.2.3
Hi Luca, I investigated a little more this issue today and I spotted that it was a false alarm. Long story short: for several reasons I need to store shared libraries in a specific place (not inside Linux standard folders); to ensure my binaries can find the shared libraries I inject into libzmq the GCC -Xlinker -rpath /my/path option. The result is that regardless of libtool automagic LD_LIBRARY_PATH adjustments the tests were running against the outdated libzmq version inside /my/path. After updating /my/path/libzmq.so.5.1.3 the tests pass just fine, included test_req_relaxed. I will start testing libzmq in my company's bigger software next week and will let you know... Thanks, Francesco 2017-11-21 17:10 GMT+01:00 Luca Boccassi: > The closest I can get to that is on the Ubuntu 16.04 OBS build, where > the test passes: > > https://build.opensuse.org/build/network:messaging:zeromq:git-draft/xUb > untu_16.04/x86_64/libzmq/_log > > Ubuntu 16.04, gcc 5.3.1, libc 2.23, libstdc++ 5.3.1 - not quite the > same, but couldn't see how it could affect that test :-/ > > On Tue, 2017-11-21 at 16:59 +0100, Francesco wrote: > > Hi Luca, > > The environment is: > > - Ubuntu 16.04 (but I tested also on Centos 7 same result) > > - gcc 5.3.0 compiled from sources with default options (NOTE > > this is > > not gcc 5.5.0) > > - glibc 2.22 > > - libstdc++.so.6.0.21 > > > > Before update IIRC the tests were passing except for random failures > > of > > test_security_zap. > > > > Francesco > > > > > > 2017-11-21 16:30 GMT+01:00 Luca Boccassi : > > > > > Thanks for the report, unfortunately I can't repro with GCC 5.5 > > > (the > > > closest I can get on Debian to 5.3). What's the full environment? > > > OS, > > > libc, libstdc++ > > > > > > On Tue, 2017-11-21 at 14:30 +0100, Francesco wrote: > > > > Hi Luca, > > > > I grabbed latest libzmq-master and rebuilt it with the GCC for > > > > our > > > > production software (gcc 5.3) and I always get the following test > > > > failure: > > > > > > > > > > > >zeromq 4.2.3: ./test-suite.log > > > > > > > > > > > > # TOTAL: 90 > > > > # PASS: 89 > > > > # SKIP: 0 > > > > # XFAIL: 0 > > > > # FAIL: 1 > > > > # XPASS: 0 > > > > # ERROR: 0 > > > > > > > > .. contents:: :depth: 2 > > > > > > > > FAIL: tests/test_req_relaxed > > > > > > > > > > > > lt-test_req_relaxed: tests/test_req_relaxed.cpp:118: int main(): > > > > Assertion > > > > `events == 2' failed. > > > > FAIL tests/test_req_relaxed (exit status: 134) > > > > > > > > > > > > I will try to debug that in the next days as soon as I have some > > > > time... > > > > Btw I'm building WITHOUT libsodium and with draft features > > > > turned > > > > on. I > > > > don't know if this makes any difference. > > > > > > > > Francesco > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 2017-11-17 19:00 GMT+01:00 Brian Knox via zeromq-dev < > > > > zeromq-dev@lists.zeromq.org>: > > > > > > > > > Hi Luca! I'll run some of my test suites against it later today > > > > > and > > > > > see if > > > > > anything breaks. > > > > > > > > > > On Fri, Nov 17, 2017 at 11:05 AM Luca Boccassi > > > > mail > > > > > .com> > > > > > wrote: > > > > > > > > > > > Hi, > > > > > > > > > > > > With https://github.com/zeromq/libzmq/issues/2733 duct-taped > > > > > > the > > > > > > major > > > > > > blocker for releasing libzmq 4.2.3 is gone. I am currently > > > > > > compiling > > > > > > the changelog. > > > > > > > > > > > > It would be great if folks with applications using 4.2.2 > > > > > > could > > > > > > test > > > > > > 4.2.3 and report any regressions that they eventually find. > > > > > > > > > > > > -- > > > > > > Kind regards, > > > > > > 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 > > > > > > > > > > > > > > > > > > ___ > > > > zeromq-dev mailing list > > > > zeromq-dev@lists.zeromq.org > > > > https://lists.zeromq.org/mailman/listinfo/zeromq-dev > > > > > > -- > > > Kind regards, > > > 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 > >
Re: [zeromq-dev] CMakeLists.txt for ROS while using ZeroMQ
Dear Stephan, Thank you very much. It worked like a charm. Thanks a lot. You saved me. - Ravi On Saturday, 25 November 2017 12:12 AM, Stephan Opferwrote: Hi, have a look at the capnzero ROS package: https://github.com/carpe-noctem-cassel/symrock/tree/zmq/capnzero CMakeLists works with FindZMQ.cmake file in the cmake folder. Greetings, Stephan On 24.11.2017 16:07, Ravi Joshi via zeromq-dev wrote: > Hi, > > Hope you are having a great time. I am trying to use ZeroMQ in ROS C++. I am > looking for CMakeLists.txt file for ZeroMQ. From the Google, I found that > there is a ROS Package to do it (https://github.com/ethz-asl/zeromq_catkin). > However, it seems that this package downloads and compiles ZeroMQ first. > > I already have ZeroMQ installed and working fine. Hence I don't want to > install it again. > > I have written a standalone C++ ZeroMQ code, which works fine but I am not > able to compile it with ROS. Since I don't know CMakeLists.txt. > > Please have a look at the following Pastebin links to see CMakeLists.txt > [1] "[ROS]CMakeLists.txt": (https://pastebin.com/29AKZvmF) This is the ROS > file, which I am looking for. Unfortunately, this is not working. > [2] "[Standalone]CMakeLists.txt": (https://pastebin.com/TC1Bw4t5) This is > standalone file and it is working properly. > > Please note that I am using ROS Indigo on Ubuntu 14.04 LTS PC. > > - > Thanks > Ravi > ___ > zeromq-dev mailing list > zeromq-dev@lists.zeromq.org > https://lists.zeromq.org/mailman/listinfo/zeromq-dev -- Distributed Systems Research Group Stephan Opfer T. +49 561 804-6280 F. +49 561 804-6277 Univ. Kassel, FB 16, Wilhelmshöher Allee 73, D-34121 Kassel WWW: http://www.uni-kassel.de/go/vs_stephan-opfer/ ___ 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
Re: [zeromq-dev] How to receive byte array in ZeroMQ C++
Thanks Ju. Actually, I was confused a litle. I saw the C API, which uses zmsg_popmsg. However, since I am using C++, I tried to search for equivalent C++ API but I couldn't. This is why I mentioned twice that the message consists of ZFrame and ZFrame is initialized with the byte array. Hence I was expecting that first I need to use some kind of pop msg and then get the byte array. I really appreciate your help. Thanks again. - Ravi On Saturday, 25 November 2017 12:02 AM, Juergen Gnosswrote: Just as a pathfinder I don't know nothing about the C++ bindings of zmq and how it is implemented. In C bindings you need to "pop" each part of the message in a variable of your choice, then you can handle that variable as you do normal in your language. In C after receiving the message from your socket, you do : int msgsize =zmsg_size(receivedMessage); byte *msgContent =zmsg_popmsg(receivedMessage); then for (int x = 0; i < msgsize; i++) { doSomeThingWith(msgContent[i]); } Ju From: zeromq-dev on behalf of Ravi Joshi via zeromq-dev Sent: Friday, November 24, 2017 12:39 AM To: ZeroMQ development list Cc: Ravi Joshi; Mykola Ostrovskyy Subject: Re: [zeromq-dev] How to receive byte array in ZeroMQ C++ Dear Mykola, Thank you very much. The message is defined in C# as follows: var message = new ZMessage { new ZFrame(myByteArray) }; publisher.Send(message); I want to get the byte array in C++. May I use something like following: zmq::message_t msg; int rc = zmq_socket.recv(); if (rc) { unsigned char bytearray[] = msg.data(); } Please check out following Pastebin links, to see publisher and subscriber code: (1) https://pastebin.com/PJ7f2TJ5 (2) https://pastebin.com/JKf0cZjh - Thanks Ravi On Friday, 24 November 2017 1:35 AM, Mykola Ostrovskyy via zeromq-dev wrote: Hello Ravi, If that's just a raw byte array, msg.data() should to the trick. For example: for (size_t i = 0; i < msg.size(); ++i) { printf("%02X ", msg.data()[i]); } Regards, Mykola 2017-11-23 14:52 GMT+02:00 Ravi Joshi via zeromq-dev : Hello, > >Hope you are having a good time. I am publishing byte array using ZeroMQ in >C#. Please see the publisher here (https://pastebin.com/PJ7f2TJ5 ) > >I am trying to receive this byte array in C++. Please see the subscriber in >C++ here (https://pastebin.com/JKf0cZjh ) > >I want to know that how to receive the sent bytes in C++? > >- > >Thanks >Ravi >__ _ >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
Re: [zeromq-dev] CMakeLists.txt for ROS while using ZeroMQ
Hi, have a look at the capnzero ROS package: https://github.com/carpe-noctem-cassel/symrock/tree/zmq/capnzero CMakeLists works with FindZMQ.cmake file in the cmake folder. Greetings, Stephan On 24.11.2017 16:07, Ravi Joshi via zeromq-dev wrote: Hi, Hope you are having a great time. I am trying to use ZeroMQ in ROS C++. I am looking for CMakeLists.txt file for ZeroMQ. From the Google, I found that there is a ROS Package to do it (https://github.com/ethz-asl/zeromq_catkin). However, it seems that this package downloads and compiles ZeroMQ first. I already have ZeroMQ installed and working fine. Hence I don't want to install it again. I have written a standalone C++ ZeroMQ code, which works fine but I am not able to compile it with ROS. Since I don't know CMakeLists.txt. Please have a look at the following Pastebin links to see CMakeLists.txt [1] "[ROS]CMakeLists.txt": (https://pastebin.com/29AKZvmF) This is the ROS file, which I am looking for. Unfortunately, this is not working. [2] "[Standalone]CMakeLists.txt": (https://pastebin.com/TC1Bw4t5) This is standalone file and it is working properly. Please note that I am using ROS Indigo on Ubuntu 14.04 LTS PC. - Thanks Ravi ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org https://lists.zeromq.org/mailman/listinfo/zeromq-dev -- Distributed Systems Research Group Stephan Opfer T. +49 561 804-6280 F. +49 561 804-6277 Univ. Kassel, FB 16, Wilhelmshöher Allee 73, D-34121 Kassel WWW: http://www.uni-kassel.de/go/vs_stephan-opfer/ ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org https://lists.zeromq.org/mailman/listinfo/zeromq-dev
[zeromq-dev] CMakeLists.txt for ROS while using ZeroMQ
Hi, Hope you are having a great time. I am trying to use ZeroMQ in ROS C++. I am looking for CMakeLists.txt file for ZeroMQ. From the Google, I found that there is a ROS Package to do it (https://github.com/ethz-asl/zeromq_catkin). However, it seems that this package downloads and compiles ZeroMQ first. I already have ZeroMQ installed and working fine. Hence I don't want to install it again. I have written a standalone C++ ZeroMQ code, which works fine but I am not able to compile it with ROS. Since I don't know CMakeLists.txt. Please have a look at the following Pastebin links to see CMakeLists.txt [1] "[ROS]CMakeLists.txt": (https://pastebin.com/29AKZvmF) This is the ROS file, which I am looking for. Unfortunately, this is not working. [2] "[Standalone]CMakeLists.txt": (https://pastebin.com/TC1Bw4t5) This is standalone file and it is working properly. Please note that I am using ROS Indigo on Ubuntu 14.04 LTS PC. - Thanks Ravi ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org https://lists.zeromq.org/mailman/listinfo/zeromq-dev
Re: [zeromq-dev] How to receive byte array in ZeroMQ C++
Just as a pathfinder I don't know nothing about the C++ bindings of zmq and how it is implemented. In C bindings you need to "pop" each part of the message in a variable of your choice, then you can handle that variable as you do normal in your language. In C after receiving the message from your socket, you do : int msgsize = zmsg_size(receivedMessage); byte *msgContent = zmsg_popmsg(receivedMessage); then for (int x = 0; i < msgsize; i++) { doSomeThingWith(msgContent[i]); } Ju From: zeromq-devon behalf of Ravi Joshi via zeromq-dev Sent: Friday, November 24, 2017 12:39 AM To: ZeroMQ development list Cc: Ravi Joshi; Mykola Ostrovskyy Subject: Re: [zeromq-dev] How to receive byte array in ZeroMQ C++ Dear Mykola, Thank you very much. The message is defined in C# as follows: var message = new ZMessage { new ZFrame(myByteArray) }; publisher.Send(message); I want to get the byte array in C++. May I use something like following: zmq::message_t msg; int rc = zmq_socket.recv(); if (rc) { unsigned char bytearray[] = msg.data(); } Please check out following Pastebin links, to see publisher and subscriber code: (1) https://pastebin.com/PJ7f2TJ5 (2) https://pastebin.com/JKf0cZjh - Thanks Ravi On Friday, 24 November 2017 1:35 AM, Mykola Ostrovskyy via zeromq-dev wrote: Hello Ravi, If that's just a raw byte array, msg.data() should to the trick. For example: for (size_t i = 0; i < msg.size(); ++i) { printf("%02X ", msg.data()[i]); } Regards, Mykola 2017-11-23 14:52 GMT+02:00 Ravi Joshi via zeromq-dev : Hello, > >Hope you are having a good time. I am publishing byte array using ZeroMQ in >C#. Please see the publisher here (https://pastebin.com/PJ7f2TJ5 ) > >I am trying to receive this byte array in C++. Please see the subscriber in >C++ here (https://pastebin.com/JKf0cZjh ) > >I want to know that how to receive the sent bytes in C++? > >- > >Thanks >Ravi >__ _ >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