One mini protocol over the mux. Outgoing messages are framed into segments
and written to the transport, incoming segment payloads are decoded into
messages and handed to parse, and the protocol's state machine is kept
along the way: a request the state does not allow is refused before it is
sent, and a message the node may not send, or one that does not parse, is
reported as an error event and drops the connection.
One mini protocol over the mux. Outgoing messages are framed into segments and written to the transport, incoming segment payloads are decoded into messages and handed to
parse, and the protocol's state machine is kept along the way: a request the state does not allow is refused before it is sent, and a message the node may not send, or one that does not parse, is reported as anerrorevent and drops the connection.