Skip to content
Tom Barbette edited this page Oct 3, 2018 · 2 revisions

MSQueue Element Documentation

NAME

MSQueue — Click element; stores packets in a FIFO queue

SYNOPSIS

MSQueue
MSQueue(CAPACITY)

Batching: Batching natively supported
Ports: 1 input, 1-2 outputs

DESCRIPTION

Stores incoming packets in a multiple producer single consumer first-in-first-out queue. Enqueue operations are synchronized, dequeue operations are not. Drops incoming packets if the queue already holds CAPACITY packets. The default for CAPACITY is 1000.

ELEMENT HANDLERS

  • length (read-only) — Returns the current number of packets in the queue.
  • dropd (read-only) — Returns the number of packets dropped by the queue so far.
  • capacity (read/write) — Returns or sets the queue's capacity.

SEE ALSO

Queue

Generated by click-elem2man from ../elements/standard/msqueue.hh:6 on 2018/10/03.

Clone this wiki locally