BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Public Types | Public Member Functions | List of all members
graphene::net::peer_database Class Reference

#include <peer_database.hpp>

Public Types

using iterator = detail::peer_database_iterator

Public Member Functions

 peer_database ()
virtual ~peer_database ()
void open (const fc::path &databaseFilename)
void close ()
void clear ()
void erase (const fc::ip::endpoint &endpointToErase)
void update_entry (const potential_peer_record &updatedRecord)
potential_peer_record lookup_or_create_entry_for_ep (const fc::ip::endpoint &endpointToLookup) const
fc::optional< potential_peer_recordlookup_entry_for_endpoint (const fc::ip::endpoint &endpointToLookup) const
iterator begin () const
iterator end () const
size_t size () const

Detailed Description

Definition at line 95 of file peer_database.hpp.

Member Typedef Documentation

◆ iterator

Definition at line 111 of file peer_database.hpp.

Constructor & Destructor Documentation

◆ peer_database()

graphene::net::peer_database::peer_database ( )

Definition at line 224 of file peer_database.cpp.

◆ ~peer_database()

graphene::net::peer_database::~peer_database ( )

Definition at line 229 of file peer_database.cpp.

Member Function Documentation

◆ begin()

peer_database::iterator graphene::net::peer_database::begin ( ) const

Definition at line 269 of file peer_database.cpp.

◆ clear()

void graphene::net::peer_database::clear ( )

Definition at line 242 of file peer_database.cpp.

◆ close()

void graphene::net::peer_database::close ( )

Definition at line 237 of file peer_database.cpp.

◆ end()

peer_database::iterator graphene::net::peer_database::end ( ) const

Definition at line 274 of file peer_database.cpp.

◆ erase()

void graphene::net::peer_database::erase ( const fc::ip::endpoint endpointToErase)

Definition at line 247 of file peer_database.cpp.

◆ lookup_entry_for_endpoint()

fc::optional< potential_peer_record > graphene::net::peer_database::lookup_entry_for_endpoint ( const fc::ip::endpoint endpointToLookup) const

Definition at line 263 of file peer_database.cpp.

◆ lookup_or_create_entry_for_ep()

potential_peer_record graphene::net::peer_database::lookup_or_create_entry_for_ep ( const fc::ip::endpoint endpointToLookup) const

Definition at line 257 of file peer_database.cpp.

◆ open()

void graphene::net::peer_database::open ( const fc::path databaseFilename)

Definition at line 232 of file peer_database.cpp.

◆ size()

size_t graphene::net::peer_database::size ( ) const

Definition at line 279 of file peer_database.cpp.

◆ update_entry()

void graphene::net::peer_database::update_entry ( const potential_peer_record updatedRecord)

Definition at line 252 of file peer_database.cpp.

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