Invoke a callback on the node with the given id, if it is fully connected.
Declared in <net.h>
[[requires_capability(0x7ff36f780fa8), requires_capability(0x7ff36f467818), requires_capability(0x7ff37f406dd8), requires_capability(0x7ff377563ba8), requires_capability(0x7ff37b69f0a8), requires_capability(0x7ff37e1c6cd8), requires_capability(0x7ff379a7d228), requires_capability(0x7ff36f4a4268), requires_capability(0x7ff37bc14ec8), requires_capability(0x7ff3814a4e98), requires_capability(0x7ff3666cbf18)]]
bool
ForNode(
NodeId id,
std::function<bool(CNode*)> func);
false if no fully connected node with that id exists, otherwise the callback's result.
| Name | Description |
|---|---|
| id | the id of the node to look up. |
| func | the callback to invoke; its return value is forwarded. |