Bitcoin ABC 0.30.7
P2P Digital Currency
Classes | Functions | Variables
main.cpp File Reference
#include <clientversion.h>
#include <common/args.h>
#include <dnsseeds.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/fs.h>
#include <util/strencodings.h>
#include <util/time.h>
#include <util/translation.h>
#include <algorithm>
#include <atomic>
#include <cinttypes>
#include <csignal>
#include <cstdlib>
#include <fstream>
#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 *data)
 
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
 
static const 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 347 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 37 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 *  data)

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 332 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 295 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 35 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 29 of file main.cpp.

◆ MAX_HOSTS_PER_SEED

const unsigned int MAX_HOSTS_PER_SEED = 128
static

Definition at line 330 of file main.cpp.