Message queue broker in C++

//
// Simple message queuing broker in C++
// Same as request-reply broker but using QUEUE device
//
// Olivier Chamoux <moc.puorgselaht.rf|xuomahc.reivilo#moc.puorgselaht.rf|xuomahc.reivilo>

#include "zhelpers.hpp"

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);
zmq_bind (backend, "tcp://*:5560");

// Start built-in device
zmq::device (ZMQ_QUEUE, frontend, backend);
return 0;
}