MADARA
3.2.3
Main Page
Namespaces
Classes
Files
File List
File Members
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
ERROR_UDP_NOT_STARTED = -1,
29
};
30
31
static
const
int
PROFILES = 1;
32
40
UdpRegistryServer
(
const
std::string
&
id
,
41
madara::knowledge::ThreadSafeContext
& context,
42
TransportSettings
& config,
bool
launch_transport);
43
49
long
send_data (
const
madara::knowledge::VariableReferenceMap
& updates)
override
;
50
51
int
setup (
void
)
override
;
52
53
protected
:
54
size_t
server_count_
;
55
56
knowledge::containers::Map
endpoints_
;
57
};
58
}
59
}
60
61
#endif // _MADARA_UDP_REGISTRY_SERVER_H_
Map.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:75
madara::transport::TransportSettings
Holds basic transport settings.
Definition:
TransportSettings.h:76
Transport.h
madara::transport::UdpRegistryServer::server_count_
size_t server_count_
Definition:
UdpRegistryServer.h:54
madara::transport::UdpRegistryServer::endpoints_
knowledge::containers::Map endpoints_
Definition:
UdpRegistryServer.h:56
madara::knowledge::tags::string
static struct madara::knowledge::tags::string_t string
madara::knowledge::containers::Map
This class stores a map of strings to KaRL variables.
Definition:
Map.h:32
Threader.h
madara::knowledge::VariableReferenceMap
std::map< const char *, VariableReference, VariableReferenceMapCompare > VariableReferenceMap
a map of variable references
Definition:
VariableReference.h:112
madara
Copyright (c) 2015 Carnegie Mellon University.
Definition:
AggregateFilter.h:30
madara::transport::UdpTransport
UDP-based transport for knowledge.
Definition:
UdpTransport.h:37
madara::transport::UdpRegistryServer
UDP-based server that handles a registry of UDP endpoints, which makes it ideal for any NAT-protected...
Definition:
UdpRegistryServer.h:24
include
madara
transport
udp
UdpRegistryServer.h
Generated on Thu Jul 12 2018 17:38:26 for MADARA by
1.8.11