Module reth_eth_wire::multiplex

source ·
Expand description

Rlpx protocol multiplexer and satellite stream

A Satellite is a Stream that primarily drives a single RLPx subprotocol but can also handle additional subprotocols.

Most of other subprotocols are “dependent satellite” protocols of “eth” and not a fully standalone protocol, for example “snap”, See also snap protocol Hence it is expected that the primary protocol is “eth” and the additional protocols are “dependent satellite” protocols.

Structs§

  • A connection channel to receive non_empty messages for the negotiated protocol.
  • A Stream and Sink type that acts as a wrapper around a primary RLPx subprotocol (e.g. “eth”)
  • A Stream and Sink type that wraps a raw rlpx stream P2PStream and handles message ID multiplexing.
  • A Stream and Sink type that acts as a wrapper around a primary RLPx subprotocol (e.g. “eth”) EthStream and can also handle additional subprotocols.