BitShares-Core  5.0.0
BitShares blockchain implementation and command-line interface software
Public Types | Public Member Functions | List of all members
graphene::net::peer_database Class Reference

#include <peer_database.hpp>

Public Types

typedef detail::peer_database_iterator iterator

Public Member Functions

 peer_database ()
 ~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_endpoint (const fc::ip::endpoint &endpointToLookup)
fc::optional< potential_peer_recordlookup_entry_for_endpoint (const fc::ip::endpoint &endpointToLookup)
iterator begin () const
iterator end () const
size_t size () const

Detailed Description

Definition at line 96 of file peer_database.hpp.

Member Typedef Documentation

Definition at line 112 of file peer_database.hpp.

Constructor & Destructor Documentation

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

Definition at line 219 of file peer_database.cpp.

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

Definition at line 224 of file peer_database.cpp.

Member Function Documentation

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

Definition at line 262 of file peer_database.cpp.

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

Definition at line 237 of file peer_database.cpp.

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

Definition at line 232 of file peer_database.cpp.

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

Definition at line 267 of file peer_database.cpp.

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

Definition at line 242 of file peer_database.cpp.

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

Definition at line 257 of file peer_database.cpp.

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

Definition at line 252 of file peer_database.cpp.

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

Definition at line 227 of file peer_database.cpp.

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

Definition at line 272 of file peer_database.cpp.

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

Definition at line 247 of file peer_database.cpp.

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