![]() |
Master Core
v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
|
Access to the (IP) address database (peers.dat) More...
#include <net.h>
Public Member Functions | |
CAddrDB () | |
bool | Write (const CAddrMan &addr) |
bool | Read (CAddrMan &addr) |
Private Attributes | |
boost::filesystem::path | pathAddr |
CAddrDB::CAddrDB | ( | ) |
Definition at line 1909 of file net.cpp.
References GetDataDir().
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().
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().