xrpld
Loading...
Searching...
No Matches
xrpl::test::detail Namespace Reference

Functions

static json::Value rpf (jtx::Account const &src, jtx::Account const &dst, xrpl::test::jtx::MPT const &usd, std::vector< MPTID > const &numSrc)
Peer::ID nextCapturePeerId ()
 Non-template, so all makeCapturePeer instantiations share one counter.
beast::ip::Endpoint nextCapturePeerRemote ()
 Non-template for the same reason as nextCapturePeerId.
boost::asio::ssl::context & capturePeerSslContext ()
 Outlives every peer, whose stream keeps a reference to it.

Variables

constexpr std::uint16_t kCapturePeerPort = 51235

Function Documentation

◆ rpf()

json::Value xrpl::test::detail::rpf ( jtx::Account const & src,
jtx::Account const & dst,
xrpl::test::jtx::MPT const & usd,
std::vector< MPTID > const & numSrc )
static

Definition at line 51 of file PathMPT_test.cpp.

◆ nextCapturePeerId()

Peer::ID xrpl::test::detail::nextCapturePeerId ( )

Non-template, so all makeCapturePeer instantiations share one counter.

A per-instantiation counter would give two peer types the same id, and addActive would silently drop the second from ids_.

Returns
The next unused connection id.

Definition at line 157 of file CapturePeer.h.

◆ nextCapturePeerRemote()

beast::ip::Endpoint xrpl::test::detail::nextCapturePeerRemote ( )

Non-template for the same reason as nextCapturePeerId.

Each peer needs its own address, not just its own port: the peer finder caps inbound connections per address at ipLimit, which is at most 2 unless configured.

Returns
The next unused remote endpoint.

Definition at line 171 of file CapturePeer.h.

◆ capturePeerSslContext()

boost::asio::ssl::context & xrpl::test::detail::capturePeerSslContext ( )

Outlives every peer, whose stream keeps a reference to it.

PeerImp::charge posts a handler holding the peer, so a peer can outlive its caller's scope.

Returns
The ssl context every test peer's stream is built on.

Definition at line 186 of file CapturePeer.h.

Variable Documentation

◆ kCapturePeerPort

std::uint16_t xrpl::test::detail::kCapturePeerPort = 51235
constexpr

Definition at line 147 of file CapturePeer.h.