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§
- Drain
Worker - Drain worker: pull envelopes from C2 and parse g4a on core.
- Operator
Link - 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).
- Node
Controller Error - Operator
Error
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.