// // Simple message queuing broker in C++ // Same as request-reply broker but using QUEUE device //
int main (int argc, char *argv[]) { zmq::context_t context(1);
// Socket facing clients zmq::socket_t frontend (context, ZMQ_ROUTER); frontend.bind("tcp://*:5559"); // Socket facing services zmq::socket_t backend (context, ZMQ_DEALER); backend.bind("tcp://*:5560"); // Start the proxy zmq::proxy(static_cast<void*>(frontend), static_cast<void*>(backend), nullptr); return 0;
}
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
//
// Simple message queuing broker in C++
// Same as request-reply broker but using QUEUE device
//
include "zhelpers.hpp"
int main (int argc, char *argv[])
{
zmq::context_t context(1);
}