zeromq / zmqpp

0mq 'highlevel' C++ bindings
http://zeromq.github.io/zmqpp
Mozilla Public License 2.0
438 stars 195 forks source link

Router-Dealer not working correctly #170

Closed aaronovz1 closed 8 years ago

aaronovz1 commented 8 years ago

I have a router-dealer system setup but it doesn't appear to be working fully. I can send a message from a dealer to the router but when sending a reply back to the dealer, it never receives a message.

Router

Dealer

I have attached a slimmed down version of my classes. Hoping there is just something simple I have messed up in the configuration.

server.txt client.txt

aaronovz1 commented 8 years ago

Turns out I was doing it all wrong in terms of multi-threading and ZMQ. I also needed to make sure I sent the identity of the client with the reply from the server.

Would be nice to see some examples of zmqpp replicate the examples from the original ZMQ guide.