MADARA  3.4.1
MulticastTransport.h
Go to the documentation of this file.
1 #ifndef _MADARA_MULTICAST_TRANSPORT_H_
2 #define _MADARA_MULTICAST_TRANSPORT_H_
3 
12 #include <string>
13 
14 #include "madara/MadaraExport.h"
23 #include "madara/Boost.h"
26 
27 namespace madara
28 {
29 namespace transport
30 {
31 namespace asio = boost::asio;
32 namespace ip = boost::asio::ip;
34 
47 class MADARA_EXPORT MulticastTransport : public UdpTransport
48 {
49 public:
59  bool launch_transport);
60 
61 protected:
62  int setup_read_socket() override;
63  int setup_write_socket() override;
64  int setup_read_thread(double hertz, const std::string& name) override;
65 
66  bool pre_send_buffer(size_t addr_index) override
67  {
68  return addr_index == 0;
69  }
70 };
71 }
72 }
73 
74 #endif // _MADARA_MULTICAST_TRANSPORT_H_
This class stores variables and their values for use by any entity needing state information in a thr...
Multicast-based transport for knowledge.
bool pre_send_buffer(size_t addr_index) override
Holds basic transport settings.
UDP-based transport for knowledge.
Definition: UdpTransport.h:39
constexpr string_t string
boost::asio::ip::udp udp
Copyright(c) 2020 Galois.