Invoke a callback on the node with the given id, if it is fully connected.
Synopsis
Declared in <net.h>
[[requires_capability(0x7fbc935f9758), requires_capability(0x7fbc93360368), requires_capability(0x7fbc874297e8), requires_capability(0x7fbc9745f3c8), requires_capability(0x7fbc8e97b508), requires_capability(0x7fbc859fc878), requires_capability(0x7fbc90e39cd8), requires_capability(0x7fbc8ec34e08), requires_capability(0x7fbc92aed2c8), requires_capability(0x7fbc7cdaeb38), requires_capability(0x7fbc9fc8acd8)]]
bool
ForNode(
NodeId id,
std::function<bool(CNode*)> func);
Return Value
false if no fully connected node with that id exists, otherwise the callback's result.
Parameters
Name |
Description |
id |
the id of the node to look up. |
func |
the callback to invoke; its return value is forwarded. |
Created with MrDocs