prf::net::pool::IPoolSourceSink class

Sink used by runtime publishers of dynamic address ranges.

Current NPR slave runtime publishes np2 snapshots through this interface. Other protocols can reuse the same contract without depending on pool internals.

Derived classes

class Ipv4PoolManager final
Fixed-footprint IPv4 pool manager for static and dynamic pools.

Constructors, destructors, conversion operators

~IPoolSourceSink() defaulted virtual

Public functions

auto clear_source_snapshot(std::string_view source_interface) -> bool pure virtual
Clears a previously published dynamic source snapshot.
auto publish_source_snapshot(std::string_view source_interface, const PoolSourceSnapshot& snapshot) -> bool pure virtual
Publishes or updates a dynamic source snapshot.

Function documentation

bool prf::net::pool::IPoolSourceSink::clear_source_snapshot(std::string_view source_interface) pure virtual

Clears a previously published dynamic source snapshot.

Parameters
source_interface Runtime source name, for example np2.
Returns true when at least one matching dynamic pool observed the clear.

bool prf::net::pool::IPoolSourceSink::publish_source_snapshot(std::string_view source_interface, const PoolSourceSnapshot& snapshot) pure virtual

Publishes or updates a dynamic source snapshot.

Parameters
source_interface Runtime source name, for example np2.
snapshot Current source parameters.
Returns true when at least one matching dynamic pool was updated.