12 #ifndef ROC_PACKET_ROUTER_H_
13 #define ROC_PACKET_ROUTER_H_
82 Route* find_route_(
unsigned flags);
83 bool allow_route_(Route& route,
const Packet& packet);
#define ROC_ATTR_NODISCARD
Emit warning if function result is not checked.
Base class for non-copyable objects.
Route packets to packet writers.
Router(core::IArena &arena)
Initialize.
virtual ROC_ATTR_NODISCARD status::StatusCode write(const PacketPtr &packet)
Write next packet.
stream_source_t get_source_id(unsigned flags)
Get detected source id for given route.
ROC_ATTR_NODISCARD bool add_route(IWriter &writer, unsigned flags)
Add route.
bool has_source_id(unsigned flags)
Check if there is detected source id for given route.
uint32_t stream_source_t
Packet stream identifier.
Commonly used types and functions.
Various units used in packets.