Skip to content

rlpx::socket

Classes

Name
class rlpx::socket::SocketTransport

Types

Name
using asio::ip::tcp tcp

Functions

Name
Result< SocketTransport > connect_with_timeout(asio::any_io_executor executor, std::string_view host, uint16_t port, std::chrono::milliseconds timeout, asio::yield_context yield)
Result< SocketTransport > connect_with_timeout(boost::asio::any_io_executor executor, std::string_view host, uint16_t port, std::chrono::milliseconds timeout, boost::asio::yield_context yield)
Connect to remote endpoint with timeout.

Types Documentation

using tcp

using rlpx::socket::tcp = asio::ip::tcp;

Functions Documentation

function connect_with_timeout

Result< SocketTransport > connect_with_timeout(
    asio::any_io_executor executor,
    std::string_view host,
    uint16_t port,
    std::chrono::milliseconds timeout,
    asio::yield_context yield
)

function connect_with_timeout

Result< SocketTransport > connect_with_timeout(
    boost::asio::any_io_executor executor,
    std::string_view host,
    uint16_t port,
    std::chrono::milliseconds timeout,
    boost::asio::yield_context yield
)

Connect to remote endpoint with timeout.

Parameters:

  • executor Asio executor to use for the connection.
  • host Remote hostname or IP.
  • port Remote TCP port.
  • timeout Connection timeout duration.
  • yield Boost.Asio stackful coroutine context.

Return: Connected SocketTransport on success, SessionError on failure.


Updated on 2026-04-13 at 23:22:46 -0700