MADARA
3.2.3
Main Page
Namespaces
Classes
Files
File List
File Members
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
ERROR_UDP_NOT_STARTED = -1,
36
};
37
38
static
const
int
PROFILES = 1;
39
47
UdpRegistryClient
(
const
std::string
&
id
,
48
madara::knowledge::ThreadSafeContext
& context,
49
TransportSettings
& config,
bool
launch_transport);
50
54
void
send_register (
void
);
55
61
long
send_data (
const
madara::knowledge::VariableReferenceMap
& updates)
override
;
62
63
int
setup (
void
)
override
;
64
65
protected
:
67
std::vector <udp::endpoint>
servers_
;
68
69
knowledge::containers::Map
endpoints_
;
70
};
71
}
72
}
73
74
#endif // _MADARA_UDP_REGISTRY_CLIENT_TRANSPORT_H_
madara::transport::UdpRegistryClient::endpoints_
knowledge::containers::Map endpoints_
Definition:
UdpRegistryClient.h:69
madara::transport::UdpRegistryClient::servers_
std::vector< udp::endpoint > servers_
registry servers
Definition:
UdpRegistryClient.h:67
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::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::UdpRegistryClient
UDP-based transport for knowledge.
Definition:
UdpRegistryClient.h:31
madara::transport::UdpTransport
UDP-based transport for knowledge.
Definition:
UdpTransport.h:37
include
madara
transport
udp
UdpRegistryClient.h
Generated on Thu Jul 12 2018 17:38:26 for MADARA by
1.8.11