Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

Access to the (IP) address database (peers.dat) More...

#include <addrdb.h>

Public Member Functions

 CAddrDB ()
 
bool Write (const CAddrMan &addr)
 
bool Read (CAddrMan &addr)
 

Static Public Member Functions

static bool Read (CAddrMan &addr, CDataStream &ssPeers)
 

Private Attributes

fs::path pathAddr
 

Detailed Description

Access to the (IP) address database (peers.dat)

Definition at line 80 of file addrdb.h.

Constructor & Destructor Documentation

◆ CAddrDB()

CAddrDB::CAddrDB ( )

Definition at line 122 of file addrdb.cpp.

References GetDataDir(), and pathAddr.

Member Function Documentation

◆ Read() [1/2]

bool CAddrDB::Read ( CAddrMan addr)

Definition at line 132 of file addrdb.cpp.

References pathAddr.

Referenced by CConnman::Start().

◆ Read() [2/2]

bool CAddrDB::Read ( CAddrMan addr,
CDataStream ssPeers 
)
static

Definition at line 137 of file addrdb.cpp.

References CAddrMan::Clear().

◆ Write()

bool CAddrDB::Write ( const CAddrMan addr)

Definition at line 127 of file addrdb.cpp.

References pathAddr.

Referenced by CConnman::DumpAddresses().

Member Data Documentation

◆ pathAddr

fs::path CAddrDB::pathAddr
private

Definition at line 83 of file addrdb.h.

Referenced by CAddrDB(), Read(), and Write().


The documentation for this class was generated from the following files:
Released under the MIT license