Skip to content

eth::RlpxEthSessionChannel

RlpxSession adapter implementing the minimal ETH session seam.

#include <eth_session_channel.hpp>

Inherits from eth::IEthSessionChannel

Public Functions

Name
RlpxEthSessionChannel(std::shared_ptr< rlpx::RlpxSession > session)
virtual uint8_t negotiated_eth_version() const override
virtual uint8_t negotiated_eth_offset() const override
virtual const rlpx::PeerInfo & peer_info() const override
virtual rlpx::VoidResult post_message(rlpx::framing::Message message) override
virtual rlpx::Result< rlpx::framing::Message > receive_message(boost::asio::yield_context yield) override
virtual rlpx::Result< rlpx::framing::Message > receive_message_with_timeout(std::chrono::steady_clock::duration timeout, boost::asio::yield_context yield) override
virtual void set_eth_message_handler(rlpx::EthMessageHandler handler) override

Additional inherited members

Public Functions inherited from eth::IEthSessionChannel

Name
virtual ~IEthSessionChannel() =default

Public Functions Documentation

function RlpxEthSessionChannel

explicit RlpxEthSessionChannel(
    std::shared_ptr< rlpx::RlpxSession > session
)

function negotiated_eth_version

virtual uint8_t negotiated_eth_version() const override

Reimplements: eth::IEthSessionChannel::negotiated_eth_version

function negotiated_eth_offset

virtual uint8_t negotiated_eth_offset() const override

Reimplements: eth::IEthSessionChannel::negotiated_eth_offset

function peer_info

virtual const rlpx::PeerInfo & peer_info() const override

Reimplements: eth::IEthSessionChannel::peer_info

function post_message

virtual rlpx::VoidResult post_message(
    rlpx::framing::Message message
) override

Reimplements: eth::IEthSessionChannel::post_message

function receive_message

virtual rlpx::Result< rlpx::framing::Message > receive_message(
    boost::asio::yield_context yield
) override

Reimplements: eth::IEthSessionChannel::receive_message

function receive_message_with_timeout

virtual rlpx::Result< rlpx::framing::Message > receive_message_with_timeout(
    std::chrono::steady_clock::duration timeout,
    boost::asio::yield_context yield
) override

Reimplements: eth::IEthSessionChannel::receive_message_with_timeout

function set_eth_message_handler

virtual void set_eth_message_handler(
    rlpx::EthMessageHandler handler
) override

Reimplements: eth::IEthSessionChannel::set_eth_message_handler


Updated on 2026-06-05 at 17:22:18 -0700