[zeromq-dev] pollset in AIX

2016-09-12 Thread
I have found pollset is not used in AIX 7.1 platform and I test the ZMQ with 
pollset poller. The exciting is that my program can benifit from pollset with 
about 7% performance enhencement.
Would you like push the pollset poller in ZMQ?___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Re: [zeromq-dev] libzmq not working in a custom embedded linux box

2016-07-20 Thread


it's correct I think.
you need run `make`.after `./configure`





At 2016-07-21 00:42:10, "Alejandro Javier Schwoykoski"  
wrote:

Hello all,


I have a device that runs a customized (more like handcrafted) embedded Linux 
with a resident application that controls the whole device. I was asked to 
develop a daemon program which basically implements a special web service 
(REST) that forwards external requests to the resident program and pushes 
asynchronous notifications from the resident program to external peers (the 
resident program is like a backend for this new service). I was also asked to 
create the communication library that integrates both programs and I thought it 
was a good scenario to use zmq+czmq (a req/rep and a pub/sub) instead of 
implementing it from scratch.


Given that the target is a rather old and a non-standard Linux distro I first 
wanted to confirm that the zmq library works. I was able to cross compile the 
library and tests correctly as well as the "hello world" examples of the zguide 
but they do not run as expected in the target. Specifically, I checked the 
"test_reqrep_ipc" and the hwserver/hwclient programs. I noticed that the 
programs do run correctly but on socket receive operations they just block 
forever (context creation, socket bind and connect do work). I tried different 
builds of zmq (using autotools and cmake, shared lib, static lib, with debug, 
no debug, etc) and the result was always the same.

Does anyone know what can be the issue?


FYI, here is some information of the target and cross tool:

# uname -a
Linux ASC8848A 2.6.28.9-Mozart-8G #37 PREEMPT Fri Jun 3 14:59:58 PDT 2016 
armv5tejl unknown


chaicko@gauss:~$ arm-unknown-linux-uclibcgnueabi-g++ -v
Using built-in specs.
Target: arm-unknown-linux-uclibcgnueabi
Configured with: 
/home_3/jack.zhan/buildroot/buildroot-2010.11-r46561-opt/output/toolchain/gcc-4.3.5/configure
 --prefix=/opt/Mozart_toolchain/arm-eabi-uclibc//usr 
--build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu 
--target=arm-unknown-linux-uclibcgnueabi --enable-languages=c,c++ 
--with-sysroot=/opt/Mozart_toolchain/arm-eabi-uclibc/ 
--with-build-time-tools=/opt/Mozart_toolchain/arm-eabi-uclibc//usr/arm-unknown-linux-uclibcgnueabi/bin
 --disable-__cxa_atexit --enable-target-optspace --with-gnu-ld --disable-libssp 
--disable-multilib --disable-tls --enable-shared 
--with-gmp=/home_3/jack.zhan/buildroot/buildroot-2010.11-r46561-opt/output/toolchain/gmp
 
--with-mpfr=/home_3/jack.zhan/buildroot/buildroot-2010.11-r46561-opt/output/toolchain/mpfr
 --disable-nls --enable-threads --disable-decimal-float --with-float=soft 
--with-abi=aapcs-linux --with-arch=armv5te --with-tune=arm926ej-s 
--with-pkgversion='Buildroot 2010.11' --with-bugurl=http://bugs.buildroot.net/
Thread model: posix
gcc version 4.3.5(Buildroot 2010.11)




You can find the output from ./configure here: http://pastebin.com/pVFf5x09

Thank you for your help.


--
Alejandro J. Schwoykoski

___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Re: [zeromq-dev] How do I reply to a specific message?

2016-07-16 Thread
Only REQ/REP can do this.
Or you can use DEALER/ROUTER instead






At 2016-07-16 00:31:29, "vincegata"  wrote:

Hi,


How do I reply to a specific message in a thread?


When I send reply my message starts a whole new thread.


I use gmail.


Thank you.




On Fri, Jul 15, 2016 at 6:00 AM,  wrote:
Send zeromq-dev mailing list submissions to
zeromq-dev@lists.zeromq.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
or, via email, send a message with subject or body 'help' to
zeromq-dev-requ...@lists.zeromq.org

You can reach the person managing the list at
zeromq-dev-ow...@lists.zeromq.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of zeromq-dev digest..."


Today's Topics:

   1. Re: ZMQ_POLLIN (Doron Somech)
   2. Re: Cannot setup high water mark for PUB/SUB (DEBROUX,
  LIONEL) (vincegata)


--

Message: 1
Date: Thu, 14 Jul 2016 13:07:02 +0300
From: Doron Somech 
To: ZeroMQ development list 
Subject: Re: [zeromq-dev] ZMQ_POLLIN
Message-ID:

Content-Type: text/plain; charset="utf-8"

I cannot think of a reason, it was a long time ago.
I actually did that mistake once.
Anyway I think it too late to change it.

I traced it back to :
https://github.com/zeromq/libzmq/commit/cc631c4c6649b0d67114db13386a949426e35dbf


On Thu, Jul 14, 2016 at 12:30 PM, genieplus  wrote:

> Hi,
>
> Is there any reason why the ZMQ_POLL* macros are not compatible with POLL*
> macros from  ?
>
> I was expecting a definition like follow:
>
> #define ZMQ_POLLIN  POLLIN  /* 0x001 */
> #define ZMQ_POLLOUT  POLLOUT  /* 0x004 */
> #define ZMQ_POLLERR  POLLERR  /* 0x008 */
>
>
> Regards,
>
>
>
>
> ___
> zeromq-dev mailing list
> zeromq-dev@lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
-- next part --
An HTML attachment was scrubbed...
URL: 


--

Message: 2
Date: Thu, 14 Jul 2016 12:20:04 -0400
From: vincegata 
To: zeromq mailing list 
Subject: Re: [zeromq-dev] Cannot setup high water mark for PUB/SUB
(DEBROUX, LIONEL)
Message-ID:

Content-Type: text/plain; charset="utf-8"

Hi Lionel,

I had tried all possible ways, including setting the high water mark on PUB
or SUB side :)

-thx for replying.


On Thu, Jul 14, 2016 at 6:00 AM, 
wrote:

> Send zeromq-dev mailing list submissions to
> zeromq-dev@lists.zeromq.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> or, via email, send a message with subject or body 'help' to
> zeromq-dev-requ...@lists.zeromq.org
>
> You can reach the person managing the list at
> zeromq-dev-ow...@lists.zeromq.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of zeromq-dev digest..."
>
>
> Today's Topics:
>
>1. Cannot setup high water mark for PUB/SUB (vincegata)
>2. Re: Cannot setup high water mark for PUB/SUB (DEBROUX, LIONEL)
>3. Re: Cannot setup high water mark for PUB/SUB (Doron Somech)
>4. Re: Cannot setup high water mark for PUB/SUB (Aaron Sokoloski)
>5. ZMQ_POLLIN (genieplus)
>
>
> --
>
> Message: 1
> Date: Wed, 13 Jul 2016 19:09:15 -0400
> From: vincegata 
> To: zeromq mailing list 
> Subject: [zeromq-dev] Cannot setup high water mark for PUB/SUB
> Message-ID:
> <
> cacvqjrhjag09aqcvfd9e5m+r5jhw6yoogyjtawid9gdy+j7...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hello All,
>
> I cannot seem to be able to set up the high water mark for PUB/SUB.
>
> My subscriber is expected sometimes to be somewhat slower than publisher
> hence I want the publisher to drop the messages when subscriber is slow. I
> want
> to set up the high water mark to, say, 2 messages, so when the subscriber
> is behind
> for two messages then the publisher will start dropping them.
>
> Can you take a look at my code. The publisher sends messages once every
> 200ms,
> the subscriber reads messages once every second, the high water mark is set
> to 2.
> Hence, I expect subscriber to receive approximately every fifth message.
> However,
> my subscriber diligently reads all messages consequently and the 

[zeromq-dev] Lost message with PUSH/PULL

2016-06-30 Thread
Hi every guys:
   I got a problem which ZMQ will lost some messages with PUSH/PULL ZMQ 
socket.
   The scene like this:
   A: PUSH socket, bind address "tcp://*.1209"
   B: PULL socket, connect to "tcp://localhost:1209"
   
   Run the command "telnet localhost 1209" while A sending message to B.


   The result is B will miss  messages even if I set the option of 
ZMQ_IMMEDIATE to 1 like this:
   int immediate = 1;
   zmq_setsockopt(pSock, ZMQ_IMMEDIATE, , sizeof(immediate));


  Is it right in this scene or is it should be?___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev