Expand description
Inbound peer-connection driver for the dnode peer plane.
The local node is the receiver. The driver:
- Reads bytes off the transport into a contiguous buffer.
- Drives the dnode header parser (
crate::proto::dnode::DnodeParser) over the buffer until a fullDmsgheader has been observed. - If the header marks the payload as encrypted, decrypts it
using the per-connection AES key bound during the handshake
via
crate::crypto::Crypto. When the header indicates a plaintext payload (the peer-plane was negotiated unsecured), the bytes pass through unchanged. - Drives the datastore parser over the (decrypted) payload to
reconstruct a
Msg. - Hands the parsed
Msgto the suppliedClientHandler’s dispatcher and routes the dispatcher’s response back through the per-connection responder channel.
Functions§
- dnode_
client_ loop - Drive a DNODE_PEER_CLIENT FSM until the peer closes.
Type Aliases§
- Dnode
Client Handler - Type alias for the dnode client handler bundle.