Skip to main content

Module node_controller

Module node_controller 

Source
Expand description

Core-side node controller (A2): g4a parsing lives here, not on C2.

C2’s restreamer forwards opaque multiplex DATA. Core drains the stream, strips the inner Noise layer (caller-supplied transport), then this module decodes g4a frames (RoutedNodeEvent / RoutedNodeResponse / C2ServerFrame).

Structs§

DrainWorker
Drain worker: pull envelopes from C2 and parse g4a on core.
OperatorLink
Operator control routed through core (A2): core sends g4a requests down a node’s control stream and correlates replies. C2 relays the bytes without parsing them.

Enums§

G4aMessage
Decoded g4a traffic from one drain envelope (after outer/inner crypto).
NodeControllerError
OperatorError

Functions§

handle_drain_envelope
Handle one drain envelope: only g4a channels are parsed; others stay opaque.
is_g4a_channel
Returns true when the channel kind is one of the g4a.* multiplex kinds.
parse_g4a_payload
Parse opaque payload bytes as a g4a message. C2 must not call this.