Bitcoin ABC  0.24.10
P2P Digital Currency
Classes | Functions | Variables
main.cpp File Reference
#include <clientversion.h>
#include <dnsseeds.h>
#include <fs.h>
#include <logging.h>
#include <protocol.h>
#include <seeder/bitcoin.h>
#include <seeder/db.h>
#include <seeder/dns.h>
#include <seeder/options.h>
#include <streams.h>
#include <util/strencodings.h>
#include <util/system.h>
#include <util/time.h>
#include <util/translation.h>
#include <algorithm>
#include <atomic>
#include <cinttypes>
#include <csignal>
#include <cstdlib>
#include <functional>
#include <pthread.h>
Include dependency graph for main.cpp:

Go to the source code of this file.

Classes

class  CDnsThread
 
struct  CDnsThread::FlagSpecificData
 

Functions

void * ThreadCrawler (void *data)
 
uint32_t GetIPList (void *thread, char *requestedHostname, addr_t *addr, uint32_t max, uint32_t ipv4, uint32_t ipv6)
 
void * ThreadDNS (void *arg)
 
int StatCompare (const CAddrReport &a, const CAddrReport &b)
 
void * ThreadDumper (void *)
 
void * ThreadStats (void *)
 
void * ThreadSeeder (void *)
 
int main (int argc, char **argv)
 

Variables

const std::function< std::string(const char *)> G_TRANSLATION_FUN = nullptr
 Translate string to current locale using Qt. More...
 
CAddrDb db
 
std::vector< CDnsThread * > dnsThread
 
const static unsigned int MAX_HOSTS_PER_SEED = 128
 

Function Documentation

◆ GetIPList()

uint32_t GetIPList ( void *  thread,
char *  requestedHostname,
addr_t addr,
uint32_t  max,
uint32_t  ipv4,
uint32_t  ipv6 
)

Definition at line 168 of file main.cpp.

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

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 344 of file main.cpp.

Here is the call graph for this function:

◆ StatCompare()

int StatCompare ( const CAddrReport a,
const CAddrReport b 
)

Definition at line 229 of file main.cpp.

Here is the caller graph for this function:

◆ ThreadCrawler()

void* ThreadCrawler ( void *  data)

Definition at line 36 of file main.cpp.

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

◆ ThreadDNS()

void* ThreadDNS ( void *  arg)

Definition at line 223 of file main.cpp.

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

◆ ThreadDumper()

void* ThreadDumper ( void *  )

Definition at line 241 of file main.cpp.

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

◆ ThreadSeeder()

void* ThreadSeeder ( void *  )

Definition at line 329 of file main.cpp.

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

◆ ThreadStats()

void* ThreadStats ( void *  )

Definition at line 292 of file main.cpp.

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

Variable Documentation

◆ db

CAddrDb db

Definition at line 34 of file main.cpp.

◆ dnsThread

std::vector<CDnsThread *> dnsThread

Definition at line 221 of file main.cpp.

◆ G_TRANSLATION_FUN

const std::function<std::string(const char *)> G_TRANSLATION_FUN = nullptr

Translate string to current locale using Qt.

Translate a message to the native language of the user.

Definition at line 28 of file main.cpp.

◆ MAX_HOSTS_PER_SEED

const static unsigned int MAX_HOSTS_PER_SEED = 128
static

Definition at line 327 of file main.cpp.