Choose a network to open a connection to.
Declared in <net.h>
std::optional<Network>
PickNetwork(std::optional<Proxy>& proxy) const;
the selected network, or std::nullopt if none could be selected.
| Name | Description |
|---|---|
| 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. |