[#CConnman-PrivateBroadcast] = xref:CConnman.adoc[CConnman]::PrivateBroadcast :relfileprefix: ../ :mrdocs: Group of private broadcast related members. == Synopsis Declared in `<net.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class PrivateBroadcast; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:CConnman/PrivateBroadcast/NumToOpen.adoc[`NumToOpen`] | Get the pending number of connections to open. | xref:CConnman/PrivateBroadcast/NumToOpenAdd.adoc[`NumToOpenAdd`] | Increment the number of new connections of type `ConnectionType::PRIVATE_BROADCAST` to be opened by `CConnman::ThreadPrivateBroadcast()`. | xref:CConnman/PrivateBroadcast/NumToOpenSub.adoc[`NumToOpenSub`] | Decrement the number of new connections of type `ConnectionType::PRIVATE_BROADCAST` to be opened by `CConnman::ThreadPrivateBroadcast()`. | xref:CConnman/PrivateBroadcast/NumToOpenWait.adoc[`NumToOpenWait`] | Wait for the number of needed connections to become greater than 0. | xref:CConnman/PrivateBroadcast/PickNetwork.adoc[`PickNetwork`] | Choose a network to open a connection to. |=== == Data Members [cols="1,4"] |=== | Name| Description | xref:CConnman/PrivateBroadcast/m_outbound_tor_ok_at_least_once.adoc[`m_outbound_tor_ok_at_least_once`] | Remember if we ever established at least one outbound connection to a Tor peer, including sending and receiving P2P messages. If this is true then the Tor proxy indeed works and is a proxy to the Tor network, not a misconfigured ordinary SOCKS5 proxy as ‐proxy or ‐onion. If that is the case, then we assume that connecting to an IPv4 or IPv6 address via that proxy will be done through the Tor network and a Tor exit node. | xref:CConnman/PrivateBroadcast/m_sem_conn_max.adoc[`m_sem_conn_max`] | Semaphore used to guard against opening too many connections. Opening private broadcast connections will be paused if this is equal to 0. |=== == Protected Member Functions [cols="1,4"] |=== | Name| Description | xref:CConnman/PrivateBroadcast/ProxyForIPv4or6.adoc[`ProxyForIPv4or6`] | Check if private broadcast can be done to IPv4 or IPv6 peers and if so via which proxy. If private broadcast connections should not be opened to IPv4 or IPv6, then this will return an empty optional. |=== == Protected Data Members [cols="1,4"] |=== | Name| Description | xref:CConnman/PrivateBroadcast/m_num_to_open.adoc[`m_num_to_open`] | Number of `ConnectionType::PRIVATE_BROADCAST` connections to open. |=== == Friends [cols="1,4"] |=== | Name| Description | `xref:ConnmanTestMsg.adoc[ConnmanTestMsg]` | Test harness that exposes CConnman internals for unit tests. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#