Skip to content
Eddie Kohler edited this page Oct 18, 2017 · 1 revision

MSQueue Element Documentation

NAME

MSQueue — Click element; stores packets in a FIFO queue

SYNOPSIS

MSQueue
MSQueue(CAPACITY)

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 2017/10/17.

Clone this wiki locally