MADARA
3.4.1
UdpRegistryClient.h
Go to the documentation of this file.
1
#ifndef _MADARA_UDP_REGISTRY_CLIENT_TRANSPORT_H_
2
#define _MADARA_UDP_REGISTRY_CLIENT_TRANSPORT_H_
3
4
#include <string>
5
6
#include "madara/MadaraExport.h"
7
#include "
madara/transport/udp/UdpTransport.h
"
8
#include "
madara/transport/Transport.h
"
9
#include "
madara/threads/Threader.h
"
10
#include "
madara/knowledge/containers/Map.h
"
11
12
#include <string>
13
#include <map>
14
15
namespace
madara
16
{
17
namespace
transport
18
{
31
class
MADARA_EXPORT
UdpRegistryClient
:
public
UdpTransport
32
{
33
public
:
34
enum
35
{
36
ERROR_UDP_NOT_STARTED = -1,
37
};
38
39
static
const
int
PROFILES = 1;
40
48
UdpRegistryClient
(
const
std::string
&
id
,
49
madara::knowledge::ThreadSafeContext
& context,
TransportSettings
& config,
50
bool
launch_transport);
51
55
void
send_register(
void
);
56
62
long
send_data(
63
const
madara::knowledge::KnowledgeMap
& updates)
override
;
64
65
int
setup(
void
)
override
;
66
67
protected
:
69
std::vector<udp::endpoint>
servers_
;
70
71
knowledge::containers::Map
endpoints_
;
72
};
73
}
74
}
75
76
#endif
// _MADARA_UDP_REGISTRY_CLIENT_TRANSPORT_H_
Map.h
Threader.h
Transport.h
UdpTransport.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:76
madara::knowledge::containers::Map
This class stores a map of strings to KaRL variables.
Definition:
Map.h:33
madara::transport::TransportSettings
Holds basic transport settings.
Definition:
TransportSettings.h:80
madara::transport::UdpRegistryClient
UDP-based transport for knowledge.
Definition:
UdpRegistryClient.h:32
madara::transport::UdpRegistryClient::servers_
std::vector< udp::endpoint > servers_
registry servers
Definition:
UdpRegistryClient.h:69
madara::transport::UdpRegistryClient::endpoints_
knowledge::containers::Map endpoints_
Definition:
UdpRegistryClient.h:71
madara::transport::UdpTransport
UDP-based transport for knowledge.
Definition:
UdpTransport.h:39
madara::knowledge::tags::string
constexpr string_t string
Definition:
KnowledgeRecord.h:56
madara::knowledge::KnowledgeMap
::std::map< std::string, KnowledgeRecord > KnowledgeMap
Definition:
KnowledgeRecord.h:1818
madara
Copyright(c) 2020 Galois.
Definition:
AggregateFilter.h:31
include
madara
transport
udp
UdpRegistryClient.h
Generated on Sat Jan 20 2024 00:40:27 for MADARA by
1.9.1