ZeroEQ  0.9.0
ZeroEQ - Zero Event Queue
service.h
1 
2 /* Copyright (c) 2014-2015, Human Brain Project
3  * Stefan.Eilemann@epfl.ch
4  */
5 
6 #ifndef ZEROEQ_CONNECTION_SERVICE_H
7 #define ZEROEQ_CONNECTION_SERVICE_H
8 
9 #include <string>
10 #include <zeroeq/api.h>
11 #include <zeroeq/types.h>
12 
13 namespace zeroeq
14 {
15 namespace connection
16 {
22 class Service
23 {
24 public:
35  ZEROEQ_API static bool subscribe(const std::string& address,
36  const Publisher& publisher);
37 
50  ZEROEQ_API static bool subscribe(const std::string& hostname,
51  const std::string& name,
52  const Publisher& publisher);
53 
54 private:
55  Service(const Service&) = delete;
56  Service& operator=(const Service&) = delete;
57 };
58 }
59 }
60 #endif
Defines export visibility macros for library ZeroEQ.
static bool subscribe(const std::string &address, const Publisher &publisher)
Request subscription of the given publisher to a remote broker.
Subscribes a Publisher to a remote receiver using a connection::Broker.
Definition: service.h:22
Publish-subscribe and request-reply.
Definition: client.h:10
Serves and publishes events, consumed by Subscriber.
Definition: publisher.h:26