1#ifndef PORT_DISPATCHER_HPP_YZ0UTAUF
2#define PORT_DISPATCHER_HPP_YZ0UTAUF
4#include <vanetza/btp/data_interface.hpp>
5#include <vanetza/btp/header.hpp>
6#include <vanetza/common/hook.hpp>
7#include <vanetza/geonet/transport_interface.hpp>
8#include <vanetza/net/packet.hpp>
10#include <unordered_map>
74 typedef std::unordered_map<port_type, IndicationInterface*> port_map;
75 typedef std::list<PromiscuousHook*> hook_list;
77 port_map m_interactive_handlers;
78 port_map m_non_interactive_handlers;
79 hook_list m_promiscuous_hooks;
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 *)