MADARA
3.4.1
UdpRegistryServer.h
Go to the documentation of this file.
1
#ifndef _MADARA_UDP_REGISTRY_SERVER_H_
2
#define _MADARA_UDP_REGISTRY_SERVER_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
{
24
class
MADARA_EXPORT
UdpRegistryServer
:
public
UdpTransport
25
{
26
public
:
27
enum
28
{
29
ERROR_UDP_NOT_STARTED = -1,
30
};
31
32
static
const
int
PROFILES = 1;
33
41
UdpRegistryServer
(
const
std::string
&
id
,
42
madara::knowledge::ThreadSafeContext
& context,
TransportSettings
& config,
43
bool
launch_transport);
44
50
long
send_data(
51
const
madara::knowledge::KnowledgeMap
& updates)
override
;
52
53
int
setup(
void
)
override
;
54
55
protected
:
56
size_t
server_count_
;
57
58
knowledge::containers::Map
endpoints_
;
59
};
60
}
61
}
62
63
#endif
// _MADARA_UDP_REGISTRY_SERVER_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::UdpRegistryServer
UDP-based server that handles a registry of UDP endpoints, which makes it ideal for any NAT-protected...
Definition:
UdpRegistryServer.h:25
madara::transport::UdpRegistryServer::server_count_
size_t server_count_
Definition:
UdpRegistryServer.h:56
madara::transport::UdpRegistryServer::endpoints_
knowledge::containers::Map endpoints_
Definition:
UdpRegistryServer.h:58
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
UdpRegistryServer.h
Generated on Sat Jan 20 2024 00:40:27 for MADARA by
1.9.1