6 #ifndef ZEROEQ_CONNECTION_BROKER_H
7 #define ZEROEQ_CONNECTION_BROKER_H
9 #include <zeroeq/receiver.h>
10 #include <zeroeq/log.h>
28 namespace detail {
class Broker; }
81 ZEROEQ_API
Broker(
const std::string& address,
Receiver& receiver );
86 ZEROEQ_API std::string getAddress()
const;
89 detail::Broker*
const _impl;
92 void addSockets( std::vector< zeroeq::detail::Socket >& entries )
final;
93 void process( zeroeq::detail::Socket& socket, uint32_t timeout )
final;
94 void addConnection(
const std::string& ) final { ZEROEQDONTCALL; }
Brokers subscription requests for a zeroeq::Receiver.
Fall back to a random port on failure.
Use only the fixed port for named brokers.
~Broker()
Destroy this broker.
Broker(const std::string &name, Receiver &receiver, const PortSelection mode)
Convenience constructor to create a new subscription broker.
Base class for entities receiving data.
Publish-subscribe classes for typed events.