libqi-api  2.4.3.28
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
gateway.hpp
Go to the documentation of this file.
1 #pragma once
2 /*
3 ** Copyright (C) 2012 Aldebaran Robotics
4 ** See COPYING for the license
5 */
6 
7 #ifndef _QIMESSAGING_GATEWAY_HPP_
8 #define _QIMESSAGING_GATEWAY_HPP_
9 
10 # include <qi/url.hpp>
11 
12 namespace qi
13 {
14  class GatewayPrivate;
15 
17  {
18  public:
19  Gateway();
20  ~Gateway();
21 
22  bool attachToServiceDirectory(const qi::Url &address);
23  bool listen(const qi::Url &address);
24  std::vector<qi::Url> endpoints() const;
25 
26  private:
27  GatewayPrivate *_p;
28  };
29 
31  {
32  public:
33  RemoteGateway();
34  ~RemoteGateway();
35 
36  bool listen(const qi::Url &address);
37  void join();
38 
39  private:
40  GatewayPrivate *_p;
41  };
42 
44  {
45  public:
47  ~ReverseGateway();
48 
49  bool attachToServiceDirectory(const qi::Url &address);
50  bool connect(const qi::Url &address);
51  void join();
52 
53  private:
54  GatewayPrivate *_p;
55  };
56 }
57 
58 #endif // _QIMESSAGING_GATEWAY_HPP_
#define QI_API
Definition: api.hpp:34
Definition: url.hpp:33