MADARA  3.2.3
ZMQTransport.h
Go to the documentation of this file.
1 #ifndef _MADARA_ZEROMQ_TRANSPORT_H_
2 #define _MADARA_ZEROMQ_TRANSPORT_H_
3 
12 #include <string>
13 
14 #include "madara/MadaraExport.h"
19 
20 #include <zmq.h>
21 
26 
27 namespace madara
28 {
29  namespace transport
30  {
43  class MADARA_EXPORT ZMQTransport : public Base
44  {
45  public:
53  ZMQTransport (const std::string & id,
55  TransportSettings & config, bool launch_transport);
56 
60  virtual ~ZMQTransport ();
61 
67  long send_data (const madara::knowledge::VariableReferenceMap & updates) override;
68 
72  virtual void close (void) override;
73 
78  int reliability (void) const;
79 
84  int reliability (const int & setting);
85 
90  virtual int setup (void) override;
91 
92  private:
93 
96 
99 
102  };
103  }
104 }
105 
106 #endif // _MADARA_ZEROMQ_TRANSPORT_H_
This class stores variables and their values for use by any entity needing state information in a thr...
Holds basic transport settings.
void * write_socket_
underlying socket for sending
Definition: ZMQTransport.h:101
static struct madara::knowledge::tags::string_t string
This class provides a distributed knowledge base to users.
Definition: KnowledgeBase.h:45
knowledge::KnowledgeBase knowledge_
knowledge base for threads to use
Definition: ZMQTransport.h:95
ZMQ-based transport for knowledge.
Definition: ZMQTransport.h:43
Starts threads with first class support of MADARA contexts.
Definition: Threader.h:35
threads::Threader read_threads_
threads for reading knowledge updates
Definition: ZMQTransport.h:98
std::map< const char *, VariableReference, VariableReferenceMapCompare > VariableReferenceMap
a map of variable references
Copyright (c) 2015 Carnegie Mellon University.
Base class from which all transports must be derived.
Definition: Transport.h:45