12 #ifndef ROC_PACKET_QUEUE_H_
13 #define ROC_PACKET_QUEUE_H_
#define ROC_ATTR_NODISCARD
Emit warning if function result is not checked.
Intrusive doubly-linked list.
Base class for non-copyable objects.
size_t size() const
Get number of packets in queue.
virtual ROC_ATTR_NODISCARD status::StatusCode read(PacketPtr &packet)
Read next packet.
virtual ROC_ATTR_NODISCARD status::StatusCode write(const PacketPtr &packet)
Add packet to the queue.
Intrusive doubly-linked list.