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 17, 2017
·
4 revisions
Discard Element Documentation
NAME
Discard — Click element;
drops all packets
SYNOPSIS
Discard([keywords ACTIVE, BURST])
Ports: 1 input, no outputs Processing: agnostic
DESCRIPTION
Discards all packets received on its single input. If used in a pull context,
it initiates pulls whenever packets are available, and listens for activity
notification, such as that available from Queue.
Keyword arguments are:
ACTIVE —
Boolean. If false, then Discard does not pull packets. Default is true.
Only meaningful in pull context.
BURST —
Unsigned. Number of packets to pull per scheduling. Default is 1. Only
meaningful in pull context.
ELEMENT HANDLERS
active (read/write) —
Returns or sets the ACTIVE parameter. Only present if Discard is in pull
context.
count (read-only) —
Returns the number of packets discarded.