Master Core  v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
CAddrDB Class Reference

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

#include <net.h>

+ Collaboration diagram for CAddrDB:

Public Member Functions

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

Private Attributes

boost::filesystem::path pathAddr
 

Detailed Description

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

Definition at line 721 of file net.h.

Constructor & Destructor Documentation

CAddrDB::CAddrDB ( )

Definition at line 1909 of file net.cpp.

References GetDataDir().

+ Here is the call graph for this function:

Member Function Documentation

bool CAddrDB::Read ( CAddrMan addr)

Definition at line 1952 of file net.cpp.

References CDataStream::begin(), CLIENT_VERSION, CDataStream::end(), error(), FLATDATA, Hash(), Params(), and SER_DISK.

Referenced by AppInit2().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool CAddrDB::Write ( const CAddrMan addr)

Definition at line 1914 of file net.cpp.

References CDataStream::begin(), CLIENT_VERSION, CDataStream::end(), error(), FileCommit(), fileout, FLATDATA, GetDataDir(), Hash(), Params(), RenameOver(), SER_DISK, and strprintf.

Referenced by DumpAddresses().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

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

Definition at line 724 of file net.h.


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