Bitcoin Core 28.99.0
P2P Digital Currency
Functions | Variables
net.cpp File Reference
#include <test/util/net.h>
#include <net_processing.h>
#include <netaddress.h>
#include <netmessagemaker.h>
#include <node/connection_types.h>
#include <node/eviction.h>
#include <protocol.h>
#include <random.h>
#include <serialize.h>
#include <span.h>
#include <sync.h>
#include <chrono>
#include <optional>
#include <vector>
Include dependency graph for net.cpp:

Go to the source code of this file.

Functions

std::vector< NodeEvictionCandidateGetRandomNodeEvictionCandidates (int n_candidates, FastRandomContext &random_context)
 

Variables

static std::atomic< SOCKETg_mocked_sock_fd {0}
 

Function Documentation

◆ GetRandomNodeEvictionCandidates()

std::vector< NodeEvictionCandidate > GetRandomNodeEvictionCandidates ( int  n_candidates,
FastRandomContext random_context 
)

Definition at line 119 of file net.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ g_mocked_sock_fd

std::atomic<SOCKET> g_mocked_sock_fd {0}
static

Definition at line 147 of file net.cpp.