Dash Core  0.12.2.1
P2P Digital Currency
CAddrDB Class Reference

#include <addrdb.h>

Public Member Functions

 CAddrDB ()
 
bool Write (const CAddrMan &addr)
 
bool Read (CAddrMan &addr)
 
bool Read (CAddrMan &addr, CDataStream &ssPeers)
 

Private Attributes

boost::filesystem::path pathAddr
 

Detailed Description

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

Definition at line 81 of file addrdb.h.

Constructor & Destructor Documentation

◆ CAddrDB()

CAddrDB::CAddrDB ( )

Definition at line 116 of file addrdb.cpp.

Member Function Documentation

◆ Read() [1/2]

bool CAddrDB::Read ( CAddrMan addr)

Definition at line 159 of file addrdb.cpp.

Referenced by CConnman::Start().

◆ Read() [2/2]

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

Definition at line 197 of file addrdb.cpp.

◆ Write()

bool CAddrDB::Write ( const CAddrMan addr)

Definition at line 121 of file addrdb.cpp.

Referenced by CConnman::DumpAddresses().

Member Data Documentation

◆ pathAddr

boost::filesystem::path CAddrDB::pathAddr
private

Definition at line 84 of file addrdb.h.

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


The documentation for this class was generated from the following files: