MADARA  3.4.1
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/MadaraExport.h"
19 #include "madara/utility/StdInt.h"
22 
23 namespace madara
24 {
25 namespace transport
26 {
39 class MADARA_EXPORT BroadcastTransport : public UdpTransport
40 {
41 public:
43 
44 protected:
45  bool pre_send_buffer(size_t addr_index) override
46  {
47  return addr_index == 0;
48  }
49 };
50 }
51 }
52 
53 #endif // _MADARA_BROADCAST_TRANSPORT_H_
Broadcast-based transport for knowledge.
bool pre_send_buffer(size_t addr_index) override
UDP-based transport for knowledge.
Definition: UdpTransport.h:39
UdpTransport(const std::string &id, madara::knowledge::ThreadSafeContext &context, TransportSettings &config, bool launch_transport)
Copyright(c) 2020 Galois.