Definition at line 18 of file port_dispatcher.hpp.
◆ hook_list
typedef std::list<PromiscuousHook*> vanetza::btp::PortDispatcher::hook_list |
|
private |
◆ port_map
◆ add_promiscuous_hook()
void vanetza::btp::PortDispatcher::add_promiscuous_hook |
( |
PromiscuousHook * |
hook | ) |
|
Add a hook listening for all incoming BTP packets
- Parameters
-
hook | A hook implementing the promiscuous hook interface |
- Note
- Each registered hook is invoked only once per indication
Definition at line 35 of file port_dispatcher.cpp.
◆ indicate()
void vanetza::btp::PortDispatcher::indicate |
( |
const geonet::DataIndication & |
gn_ind, |
|
|
std::unique_ptr< UpPacket > |
packet |
|
) |
| |
|
override |
◆ remove_promiscuous_hook()
void vanetza::btp::PortDispatcher::remove_promiscuous_hook |
( |
PromiscuousHook * |
hook | ) |
|
Remove promiscuous hook
- Parameters
-
hook | pointer to previously added hook |
Definition at line 45 of file port_dispatcher.cpp.
◆ set_interactive_handler()
Register a handler for incoming BTP-A (interactive) packets
- Parameters
-
port | BTP-A destination port |
interface | Handler for given destination port |
- Note
- Use a nullptr as handler to disable dispatching of destination port
-
Only one handler can be registered per port
Definition at line 50 of file port_dispatcher.cpp.
◆ set_non_interactive_handler()
Register a handler for incoming BTP-B (non-interactive) packets
- Parameters
-
port | BTP-B destination port |
interface | Handler for given destination port |
- Note
- Use a nullptr as handler to disable dispatching of destination port
-
Only one handler can be registered per port
Definition at line 57 of file port_dispatcher.cpp.
◆ hook_undispatched
Hook invoked for all indicated but undispatched packets
- Note
- BTP data indication can be nullptr
Definition at line 71 of file port_dispatcher.hpp.
◆ m_interactive_handlers
port_map vanetza::btp::PortDispatcher::m_interactive_handlers |
|
private |
◆ m_non_interactive_handlers
port_map vanetza::btp::PortDispatcher::m_non_interactive_handlers |
|
private |
◆ m_promiscuous_hooks
hook_list vanetza::btp::PortDispatcher::m_promiscuous_hooks |
|
private |
The documentation for this class was generated from the following files: