You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.