MADARA
3.1.8
Main Page
Namespaces
Classes
Files
File List
File Members
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/MADARA_export.h"
15
#include "
madara/utility/ScopedArray.h
"
16
#include "
madara/transport/QoSTransportSettings.h
"
17
#include "
madara/transport/Transport.h
"
18
#include "
madara/knowledge/KnowledgeBase.h
"
19
20
#include <zmq.h>
21
22
#include "
madara/knowledge/KnowledgeRecord.h
"
23
#include "
madara/expression/ExpressionTree.h
"
24
#include "
madara/transport/BandwidthMonitor.h
"
25
#include "
madara/threads/Threader.h
"
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
,
54
madara::knowledge::ThreadSafeContext
& context,
55
TransportSettings
& config,
bool
launch_transport);
56
60
virtual
~
ZMQTransport
();
61
67
long
send_data (
const
madara::knowledge::KnowledgeRecords
& updates);
68
72
void
close (
void
);
73
78
int
reliability (
void
)
const
;
79
84
int
reliability (
const
int
& setting);
85
90
int
setup (
void
);
91
92
private
:
93
95
knowledge::KnowledgeBase
knowledge_
;
96
98
threads::Threader
read_threads_
;
99
101
void
*
write_socket_
;
102
};
103
}
104
}
105
106
#endif // _MADARA_ZEROMQ_TRANSPORT_H_
KnowledgeRecord.h
BandwidthMonitor.h
madara::knowledge::ThreadSafeContext
This class stores variables and their values for use by any entity needing state information in a thr...
Definition:
ThreadSafeContext.h:82
madara::transport::TransportSettings
Holds basic transport settings.
Definition:
TransportSettings.h:92
madara::transport::ZMQTransport::write_socket_
void * write_socket_
underlying socket for sending
Definition:
ZMQTransport.h:101
Transport.h
QoSTransportSettings.h
madara::knowledge::KnowledgeBase
This class provides a distributed knowledge base to users.
Definition:
KnowledgeBase.h:44
madara::knowledge::KnowledgeRecords
::std::map< std::string, KnowledgeRecord * > KnowledgeRecords
Definition:
KnowledgeRecord.h:1461
madara::transport::ZMQTransport::knowledge_
knowledge::KnowledgeBase knowledge_
knowledge base for threads to use
Definition:
ZMQTransport.h:95
ExpressionTree.h
madara::transport::ZMQTransport
ZMQ-based transport for knowledge.
Definition:
ZMQTransport.h:43
Threader.h
madara::knowledge::tags::string
static constexpr struct madara::knowledge::tags::string_t string
madara::threads::Threader
Starts threads with first class support of MADARA contexts.
Definition:
Threader.h:35
madara::transport::ZMQTransport::read_threads_
threads::Threader read_threads_
threads for reading knowledge updates
Definition:
ZMQTransport.h:98
KnowledgeBase.h
ScopedArray.h
madara
Copyright (c) 2015 Carnegie Mellon University.
Definition:
AggregateFilter.h:30
madara::transport::Base
Base class from which all transports must be derived.
Definition:
Transport.h:62
include
madara
transport
zmq
ZMQTransport.h
Generated on Wed May 9 2018 18:17:17 for MADARA by
1.8.11