Contents

peek

Examines the packet at the head of the queue without removing it from the queue.

Declaration

virtual const mbuf_t peek() const;

Return Value

Returns the packet at the head of the queue.

Overview

A following call to peek() or dequeue() will return the same packet. The caller must never modify the mbuf packet returned.

See Also

Miscellaneous