Re: [zeromq-dev] Using Strawhouse security pattern with ZeroMQ

2014-12-16 Thread Pieter Hintjens
czmqpp wraps CZMQ so provides the same classes. You use zauth to do the authentication. On Mon, Dec 15, 2014 at 11:40 PM, Check Peck wrote: > Hi Pieter, > > Is there any example for Strawhouse security pattern using C++ czmq wrapper? > This link http://hintjens.com/blog:49 only talks about c way

Re: [zeromq-dev] How to use ZeroMQ context with zauth?

2014-12-16 Thread Pieter Hintjens
You can't cast a libzmq context pointer to a CZMQ class reference. These are two different types. The shadow_ctx method does a conversion. The use of contexts is deprecated in CZMQ/3.x. On Tue, Dec 16, 2014 at 1:30 AM, Check Peck wrote: > Thanks a lot. Yes it worked after that change. Can you ex

Re: [zeromq-dev] zmq_poll performance question

2014-12-16 Thread Francis Le Bourse
Hi, On 12/12/2014 5:00 PM, Arnaud Kapp wrote: > Hey, > > I did not check for performance improvement, I simply tested that my > program continued to work. > The thing is, my poller only has 1 zmq socket and 1 file descriptor > (that relies on POLLPRI -- its a GPIO pin). So in my case I could'nt > r

[zeromq-dev] Router socket reconnection failure

2014-12-16 Thread Andre Caron
Hi all, I'm experimenting with a router-router setup and I'm getting a strange issue when peers reconnect. Basically, I have three nodes, which I'll call D, P1 and P2. The idea is that D has a known TCP endpoint and socket identity. P1 and P2 connect to D, register their TCP endpoint and ide

[zeromq-dev] zeromq4-1 build errors using Visual Studio solution.

2014-12-16 Thread Riskybiz
I've cloned https://github.com/zeromq/zeromq4-1 and copied it to the location C:\zeromq4-1 on my machine. I've then opened the Visual Studio 2013 solution and tried to build zeromq using either the 'StaticRelease' or 'DynamicRelease' settings. Either way I get errors, such as listed below. Do

Re: [zeromq-dev] Router socket reconnection failure

2014-12-16 Thread Justin Karneges
Hi Andre, On Tue, Dec 16, 2014, at 07:14 AM, Andre Caron wrote: > The issue I'm having is with this sequence: > - P1 and P2 discover each other through D; > - P1 connects to P2 and P2 waits for a connection from P1 (direction is > determined by lexicographical ordering of identities, which both pe

Re: [zeromq-dev] Router socket reconnection failure

2014-12-16 Thread André Caron
Hi Justin, Thanks for the info :-) Just read that thread, but the case seems slightly different: all my nodes use a persistent identity, which I set immediately after creating the socket and thus before any bind or connect operation. However, I just tried having P2 restart with a new identity an