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


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_endpoint (const fc::ip::endpoint &endpointToLookup)
fc::optional< potential_peer_recordlookup_entry_for_endpoint (const fc::ip::endpoint &endpointToLookup)
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

Definition at line 59 of file peer_database.cpp.

Member Function Documentation

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

Definition at line 174 of file peer_database.cpp.

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

Definition at line 137 of file peer_database.cpp.

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

Definition at line 116 of file peer_database.cpp.

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

Definition at line 179 of file peer_database.cpp.

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

Definition at line 142 of file peer_database.cpp.

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

Definition at line 166 of file peer_database.cpp.

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

Definition at line 158 of file peer_database.cpp.

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

Definition at line 91 of file peer_database.cpp.

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

Definition at line 184 of file peer_database.cpp.

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

Definition at line 149 of file peer_database.cpp.

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