MADARA  3.2.3
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 
24 namespace madara
25 {
26  namespace transport
27  {
40  class MADARA_EXPORT BroadcastTransport : public UdpTransport
41  {
42  public:
44 
45  protected:
46  bool pre_send_buffer (size_t addr_index) override { return addr_index == 0; }
47  };
48  }
49 }
50 
51 #endif // _MADARA_BROADCAST_TRANSPORT_H_
UdpTransport(const std::string &id, madara::knowledge::ThreadSafeContext &context, TransportSettings &config, bool launch_transport)
Broadcast-based transport for knowledge.
bool pre_send_buffer(size_t addr_index) override
Copyright (c) 2015 Carnegie Mellon University.
UDP-based transport for knowledge.
Definition: UdpTransport.h:37