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
·
3 revisions
TimedSource Element Documentation
NAME
TimedSource — Click element;
periodically generates a packet
SYNOPSIS
TimedSource([INTERVAL, DATA, KEYWORDS])
Ports: no inputs, 1 output Processing: push
DESCRIPTION
Creates packets consisting of DATA. Pushes such a packet out its single output
about once every INTERVAL seconds. Default
INTERVAL is 500 milliseconds; default DATA is at least 64 bytes long.
Keyword arguments are:
DATA —
String. Same as the DATA argument.
INTERVAL —
Time. Same as the INTERVAL argument.
LIMIT —
Integer. Stops sending after LIMIT packets are generated; but if LIMIT is
negative, sends packets forever.
HEADROOM —
Unsigned integer. Sets the amount of headroom on generated packets. Default is
the default packet headroom.
STOP —
Boolean. If true, then stop the driver once LIMIT packets are sent. Default is
false.
EXAMPLES
TimedSource(INTERVAL 0.333) -> ...
ELEMENT HANDLERS
data (read/write) —
Returns or sets the DATA parameter.
interval (read/write) —
Returns or sets the INTERVAL parameter.