Expand description
RNS 1.4.2 Link.request (context 0x09) and its answer (0x0A).
- A request is msgpack
[time, truncated_hash(path), data]. - The response is msgpack
[request_id, data].datacrosses as raw msgpack value bytes.
Payloads past the link MDU are Resource territory, refused here.
Structs§
- Parsed
Request - Request
Id - RNS 1.4.2
packet.getTruncatedHash(), naming the request in its response. - Respond
Dispatch - Send
Request Dispatch
Enums§
Constants§
- MAX_
PACKED_ BINARY_ HEADER_ LEN - REQUEST_
RESPONSE_ GRACE_ MS - RNS 1.4.2
Resource.RESPONSE_MAX_GRACE_TIME(10 s) × 1.125, the flat term in a request’s default timeout:rtt × traffic_timeout_factor + 11.25 s. - REQUEST_
WIRE_ OVERHEAD - msgpack
fixarray(3)‖float64time ‖bin8(16)path hash, before data. - RESPONSE_
WIRE_ OVERHEAD - msgpack
fixarray(2)‖bin8(16)request id, before data. - WRAPPED_
PLAINTEXT_ CAP - Both verbs’ data caps derive from the single-packet link MDU, so the two sides land on the same figure by construction.
Functions§
- packed_
binary_ header_ len - packed_
binary_ len - parse_
request_ plaintext - Hostile floats saturate the way the LRRTT parse does; anything not shaped like the reference’s three-element pack is refused.
- parse_
response_ plaintext - response_
data_ wire_ len umsgpack.packb([request_id, response]). An empty response body still rides as one msgpacknilbyte.- response_
envelope_ prefix - write_
packed_ binary_ header - write_
request_ plaintext - write_
response_ plaintext