ZeroEQ  0.6.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 <zeroeq/api.h>
10 #include <zeroeq/types.h>
11 #include <string>
12 
13 namespace zeroeq
14 {
15 namespace connection
16 {
17 
23 class Service
24 {
25 public:
36  ZEROEQ_API static bool subscribe( const std::string& address,
37  const Publisher& publisher );
38 
51  ZEROEQ_API static bool subscribe( const std::string& hostname,
52  const std::string& name,
53  const Publisher& publisher );
54 
55 private:
56  Service( const Service& ) = delete;
57  Service& operator=( const Service& ) = delete;
58 };
59 
60 }
61 }
62 #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:23
Publish-subscribe classes for typed events.
Definition: broker.h:12
Serves and publishes events, consumed by Subscriber.
Definition: publisher.h:26