new ForwardingFlags()
A ForwardingFlags object holds the flags which specify how the forwarding daemon should forward an interest for
a registered prefix. We use a separate ForwardingFlags object to retain future compatibility if the daemon forwarding
bits are changed, amended or deprecated.
Create a new ForwardingFlags with "childInherit" set and all other flags cleared.
- Source:
Methods
getCapture() → {Boolean}
Get the value of the "capture" flag.
- Source:
Returns:
true if the flag is set, false if it is cleared.
- Type
- Boolean
getChildInherit() → {Boolean}
Get the value of the "childInherit" flag.
- Source:
Returns:
true if the flag is set, false if it is cleared.
- Type
- Boolean
getNfdForwardingFlags() → {number}
Get an integer with the bits set according to the NFD forwarding flags as
used in the ControlParameters of the command interest.
- Source:
Returns:
An integer with the bits set.
- Type
- number
setCapture(value)
Set the value of the "capture" flag
Parameters:
Name | Type | Description |
---|---|---|
value |
number | true to set the flag, false to clear it. |
- Source:
setChildInherit(value)
Set the value of the "childInherit" flag
Parameters:
Name | Type | Description |
---|---|---|
value |
number | true to set the flag, false to clear it. |
- Source:
setNfdForwardingFlags(nfdForwardingFlags)
Set the flags according to the NFD forwarding flags as used in the
ControlParameters of the command interest.
Parameters:
Name | Type | Description |
---|---|---|
nfdForwardingFlags |
number | An integer with the bits set. |
- Source: