What a subsystem receives at attach() — the node's gift to its plugins. More...
#include "librats/node/peer_network.h"#include "librats/core/event_bus.h"#include "librats/core/service_registry.h"Go to the source code of this file.
Classes | |
| struct | librats::NodeContext |
Namespaces | |
| namespace | librats |
What a subsystem receives at attach() — the node's gift to its plugins.
Bundles the three ways a subsystem reaches the rest of the node, each a separate concern so none becomes a god-object:
Rule of thumb: "something happened" → events; "do X / give me Y from module Z" → services; talking to peers → network. A subsystem stores only what it needs (most keep just &ctx.network). The references stay valid for the node's life; subscribe / provide during attach(), before start().
Definition in file node_context.h.