CConnman::PrivateBroadcast::PickNetwork

Choose a network to open a connection to.

Synopsis

Declared in <net.h>

std::optional<Network>
PickNetwork(std::optional<Proxy>& proxy) const;

Return Value

the selected network, or std::nullopt if none could be selected.

Parameters

NameDescription
proxy [out]Optional proxy to override the normal proxy selection. Will be set if !std::nullopt is returned. Could be set to std::nullopt if there is no need to override the proxy that would be used for connecting to the returned network.