[#CConnman-PrivateBroadcast-PickNetwork]
= xref:CConnman.adoc[CConnman]::xref:CConnman/PrivateBroadcast.adoc[PrivateBroadcast]::PickNetwork
:relfileprefix: ../../
:mrdocs:

Choose a network to open a connection to&period;

== Synopsis

Declared in `&lt;net&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::optional&lt;Network&gt;
PickNetwork(std::optional&lt;Proxy&gt;& proxy) const;
----

== Return Value

the selected network, or std&colon;&colon;nullopt if none could be selected&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *proxy* [out]
| Optional proxy to override the normal proxy selection&period; Will be set if !std&colon;&colon;nullopt is returned&period; Could be set to `std&colon;&colon;nullopt` if there is no need to override the proxy that would be used for connecting to the returned network&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
