[zeromq-dev] status of zguide C++ examples

Pieter Hintjens ph at imatix.com
Tue Jul 16 21:23:11 CEST 2013


Hi John,

It's quite plausible that the C++ examples are out of date. It's a
good exercise to debug them, compare and run against the C examples
(the canonical ones), and fix what you can. This is how all the
translations came to exist.

Cheers
Pieter

On Tue, Jul 16, 2013 at 8:17 PM, John Langley <digerat at gmail.com> wrote:
> Hi, I'm new to the list and interested in using zeromq from C++.
>
> In order to learn about zmq, I'm reading the guide and following along
> running the C++ examples using a locally built and installed version of
> 3.2.3 and local examples from the zguide (git cloned) on ubuntu 10.4.
>
> However, in running the "Service-Oriented Reliable Queueing Majordomo"
> examples (mdbroker, mdworker, mdclient and mdclient2) I'm running into a
> failure. (It's possible that this error shows up "earlier" in the examples
> too).
>
> Starting the broker first I get:
> jlangley at puck:$ ./mdbroker -v
> 13-07-16 14:13:20 I: MDP broker/0.1.1 is active at tcp://*:5555
>
> Then, in another command window I start the worker and get
> jlangley at puck:$ ./mdworker -v
> 13-07-16 14:14:06 I: connecting to broker at tcp://localhost:5555...
> 13-07-16 14:14:06 I: sending READY to broker
> --------------------------------------
> [000]
> [006] MDPW01
> [001] 01
> [004] echo
>
> which results in the following being printed to the terminal I started the
> broker in
> ^[w13-07-16 14:14:06 I: received message:
> --------------------------------------
> [000]
> [000]
> [006] MDPW01
> [001] 01
> [004] echo
> mdbroker: mdbroker.cpp:233: worker* broker::worker_require(std::string):
> Assertion `identity.length()!=0' failed.
> Aborted
> jlangley at puck:$
>
>
> Any ideas of what might be happening? Or suggestions about what I should do
> differently?
>
>
> I'm running g++
> langley at puck:$ g++ --version
> g++ (Ubuntu 4.4.3-4ubuntu5.1) 4.4.3
> Copyright (C) 2009 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> Thanks in advance, I'm really excited about the potential of zmq in my
> application. It meets the requirements very well.
>
> - Langley
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>



More information about the zeromq-dev mailing list