MADARA
3.1.8
Main Page
Namespaces
Classes
Files
File List
File Members
BroadcastTransport.h
Go to the documentation of this file.
1
#ifndef _MADARA_BROADCAST_TRANSPORT_H_
2
#define _MADARA_BROADCAST_TRANSPORT_H_
3
12
#include <string>
13
14
#include "madara/MADARA_export.h"
15
#include "
madara/utility/ScopedArray.h
"
16
#include "
madara/transport/broadcast/BroadcastTransportReadThread.h
"
17
#include "
madara/knowledge/ThreadSafeContext.h
"
18
#include "
madara/transport/BandwidthMonitor.h
"
19
#include "ace/SOCK_Dgram_Bcast.h"
20
#include "
madara/utility/stdint.h
"
21
#include "
madara/expression/ExpressionTree.h
"
22
#include "
madara/threads/Threader.h
"
23
24
25
namespace
madara
26
{
27
namespace
transport
28
{
41
class
MADARA_Export
BroadcastTransport
:
public
Base
42
{
43
public
:
51
BroadcastTransport
(
const
std::string
&
id
,
52
madara::knowledge::ThreadSafeContext
& context,
53
TransportSettings
& config,
bool
launch_transport);
54
58
virtual
~
BroadcastTransport
();
59
65
long
send_data (
const
madara::knowledge::KnowledgeRecords
& updates);
66
70
void
close (
void
);
71
76
int
reliability (
void
)
const
;
77
82
int
reliability (
const
int
& setting);
83
88
int
setup (
void
);
89
90
private
:
91
93
knowledge::KnowledgeBase
knowledge_
;
94
96
threads::Threader
read_threads_
;
97
99
std::vector <ACE_INET_Addr>
addresses_
;
100
102
std::vector <std::string>
splitters_
;
103
105
ACE_SOCK_Dgram_Bcast
socket_
;
106
};
107
}
108
}
109
110
#endif // _MADARA_BROADCAST_TRANSPORT_H_
madara::transport::BroadcastTransport
Multicast-based transport for knowledge.
Definition:
BroadcastTransport.h:41
BandwidthMonitor.h
madara::transport::BroadcastTransport::read_threads_
threads::Threader read_threads_
threads for reading knowledge updates
Definition:
BroadcastTransport.h:96
madara::transport::BroadcastTransport::knowledge_
knowledge::KnowledgeBase knowledge_
knowledge base for threads to use
Definition:
BroadcastTransport.h:93
ThreadSafeContext.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::BroadcastTransport::socket_
ACE_SOCK_Dgram_Bcast socket_
underlying socket for sending
Definition:
BroadcastTransport.h:105
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
ExpressionTree.h
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
stdint.h
BroadcastTransportReadThread.h
ScopedArray.h
madara::transport::BroadcastTransport::addresses_
std::vector< ACE_INET_Addr > addresses_
holds all multicast addresses we are sending to
Definition:
BroadcastTransport.h:99
madara
Copyright (c) 2015 Carnegie Mellon University.
Definition:
AggregateFilter.h:30
madara::transport::BroadcastTransport::splitters_
std::vector< std::string > splitters_
holds splitters for knowledge multiassignment expression for speed
Definition:
BroadcastTransport.h:102
madara::transport::Base
Base class from which all transports must be derived.
Definition:
Transport.h:62
include
madara
transport
broadcast
BroadcastTransport.h
Generated on Wed May 9 2018 18:17:16 for MADARA by
1.8.11