#include <TcaRegistry.h>
Definition at line 44 of file TcaRegistry.h.
Public Member Functions | |
TcaRegistry () | |
bool | init_nodes () |
bool | init_addrs () |
bool | write (const RegRecord &rr, int ttl) |
bool | read (RegRecord &rr) |
Protected Member Functions | |
CLIENT * | get_node () |
Protected Attributes | |
std::vector< std::string > | dht_nodes_ |
std::vector< sockaddr_in > | dht_addrs_ |
unsigned int | last_node_ |
TcaRegistry::TcaRegistry | ( | ) | [inline] |
Definition at line 48 of file TcaRegistry.h.
bool TcaRegistry::init_nodes | ( | ) |
Definition at line 60 of file TcaRegistry.cc.
References dht_nodes_.
Referenced by TcaController::init().
bool TcaRegistry::init_addrs | ( | ) |
Definition at line 89 of file TcaRegistry.cc.
References dht_addrs_, dht_nodes_, and last_node_.
Referenced by TcaController::init().
Definition at line 123 of file TcaRegistry.cc.
References APP_STRING, CLIB_STRING, DHT_KEYLEN, get_node(), hash(), RegRecord::host_, and RegRecord::link_addr_.
Referenced by TcaController::do_registration().
Definition at line 160 of file TcaRegistry.cc.
References APP_STRING, CLIB_STRING, DHT_KEYLEN, get_node(), hash(), RegRecord::host_, and RegRecord::link_addr_.
Referenced by TcaController::get_registration().
CLIENT * TcaRegistry::get_node | ( | ) | [protected] |
std::vector<std::string> TcaRegistry::dht_nodes_ [protected] |
std::vector<sockaddr_in> TcaRegistry::dht_addrs_ [protected] |
unsigned int TcaRegistry::last_node_ [protected] |