[#CConnman-PrivateBroadcast-PickNetwork] = xref:CConnman.adoc[CConnman]::xref:CConnman/PrivateBroadcast.adoc[PrivateBroadcast]::PickNetwork :relfileprefix: ../../ :mrdocs: Choose a network to open a connection to. == Synopsis Declared in `<net.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::optional<Network> PickNetwork(std::optional<Proxy>& proxy) const; ---- == Return Value the selected network, or std::nullopt if none could be selected. == Parameters [cols="1,4"] |=== | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#