Group of private broadcast related members.
More...
#include <net.h>
|
| std::optional< Proxy > | ProxyForIPv4or6 () const |
| | Check if private broadcast can be done to IPv4 or IPv6 peers and if so via which proxy. More...
|
| |
Group of private broadcast related members.
Definition at line 1193 of file net.h.
◆ NumToOpen()
| size_t CConnman::PrivateBroadcast::NumToOpen |
( |
| ) |
const |
Get the pending number of connections to open.
Definition at line 3100 of file net.cpp.
◆ NumToOpenAdd()
| void CConnman::PrivateBroadcast::NumToOpenAdd |
( |
size_t |
n | ) |
|
◆ NumToOpenSub()
| size_t CConnman::PrivateBroadcast::NumToOpenSub |
( |
size_t |
n | ) |
|
◆ NumToOpenWait()
| void CConnman::PrivateBroadcast::NumToOpenWait |
( |
| ) |
const |
Wait for the number of needed connections to become greater than 0.
Definition at line 3121 of file net.cpp.
◆ PickNetwork()
| std::optional< Network > CConnman::PrivateBroadcast::PickNetwork |
( |
std::optional< Proxy > & |
proxy | ) |
const |
Choose a network to open a connection to.
- Parameters
-
| [out] | proxy | 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. |
- Return values
-
| std::nullopt | No network could be selected. |
| !std::nullopt | The network was selected and proxy is set (maybe to std::nullopt). |
Definition at line 3067 of file net.cpp.
◆ ProxyForIPv4or6()
| std::optional< Proxy > CConnman::PrivateBroadcast::ProxyForIPv4or6 |
( |
| ) |
const |
|
private |
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.
Definition at line 3126 of file net.cpp.
◆ m_num_to_open
| std::atomic_size_t CConnman::PrivateBroadcast::m_num_to_open {0} |
|
private |
◆ m_outbound_tor_ok_at_least_once
| std::atomic_bool CConnman::PrivateBroadcast::m_outbound_tor_ok_at_least_once {false} |
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.
Definition at line 1204 of file net.h.
◆ 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.
Definition at line 1210 of file net.h.
The documentation for this class was generated from the following files: