Vanetza
Loading...
Searching...
No Matches
transport_interface.hpp
1#ifndef TRANSPORT_INTERFACE_HPP_MIGTMAYG
2#define TRANSPORT_INTERFACE_HPP_MIGTMAYG
3
4#include <vanetza/geonet/packet.hpp>
5#include <memory>
6
7namespace vanetza
8{
9
10namespace geonet
11{
12
13struct DataIndication;
14
16{
17public:
18 virtual void indicate(const DataIndication&, std::unique_ptr<UpPacket>) = 0;
19 virtual ~TransportInterface() {}
20};
21
22} // namespace geonet
23} // namespace vanetza
24
25#endif /* TRANSPORT_INTERFACE_HPP_MIGTMAYG */
void reset()
Definition hook.hpp:49
void operator=(callback_type &&cb)
Definition hook.hpp:23
void operator()(Args... args)
Definition hook.hpp:37
void clear()
Definition hook.hpp:57
virtual void tap_packet(const DataIndication &, const UpPacket &)=0
void add_promiscuous_hook(PromiscuousHook *hook)
void remove_promiscuous_hook(PromiscuousHook *)
void set_interactive_handler(port_type, IndicationInterface *)
Hook< const geonet::DataIndication &, const btp::DataIndication * > hook_undispatched
void set_non_interactive_handler(port_type, IndicationInterface *)