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

Classes

struct  endpoint_index
 
struct  last_seen_time_index
 

Public Types

typedef boost::multi_index_container< potential_peer_record, indexed_by< ordered_non_unique< tag< last_seen_time_index >, member< potential_peer_record, fc::time_point_sec, &potential_peer_record::last_seen_time >, std::greater< fc::time_point_sec > >, hashed_unique< tag< endpoint_index >, member< potential_peer_record, fc::ip::endpoint, &potential_peer_record::endpoint >, std::hash< fc::ip::endpoint > > > > potential_peer_set
 

Public Member Functions

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
 
peer_database::iterator begin () const
 
peer_database::iterator end () const
 
size_t size () const
 

Detailed Description

Definition at line 44 of file peer_database.cpp.

Member Typedef Documentation

◆ potential_peer_set

Definition at line 59 of file peer_database.cpp.

Member Function Documentation

◆ begin()

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

Definition at line 177 of file peer_database.cpp.

◆ clear()

void graphene::net::detail::peer_database_impl::clear ( )

Definition at line 138 of file peer_database.cpp.

◆ close()

void graphene::net::detail::peer_database_impl::close ( )

Definition at line 116 of file peer_database.cpp.

◆ end()

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

Definition at line 183 of file peer_database.cpp.

◆ erase()

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

Definition at line 143 of file peer_database.cpp.

◆ lookup_entry_for_endpoint()

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

Definition at line 168 of file peer_database.cpp.

◆ lookup_or_create_entry_for_ep()

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

Definition at line 159 of file peer_database.cpp.

◆ open()

void graphene::net::detail::peer_database_impl::open ( const fc::path databaseFilename)

Definition at line 91 of file peer_database.cpp.

◆ size()

size_t graphene::net::detail::peer_database_impl::size ( ) const

Definition at line 189 of file peer_database.cpp.

◆ update_entry()

void graphene::net::detail::peer_database_impl::update_entry ( const potential_peer_record updatedRecord)

Definition at line 150 of file peer_database.cpp.


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