|
|
@ -22,6 +22,7 @@ namespace client |
|
|
|
const int INITIAL_SUBSCRIPTION_RETRY_TIMEOUT = 1; // in minutes
|
|
|
|
const int INITIAL_SUBSCRIPTION_RETRY_TIMEOUT = 1; // in minutes
|
|
|
|
const int CONTINIOUS_SUBSCRIPTION_UPDATE_TIMEOUT = 720; // in minutes (12 hours)
|
|
|
|
const int CONTINIOUS_SUBSCRIPTION_UPDATE_TIMEOUT = 720; // in minutes (12 hours)
|
|
|
|
const int CONTINIOUS_SUBSCRIPTION_RETRY_TIMEOUT = 5; // in minutes
|
|
|
|
const int CONTINIOUS_SUBSCRIPTION_RETRY_TIMEOUT = 5; // in minutes
|
|
|
|
|
|
|
|
const int CONTINIOUS_SUBSCRIPTION_MAX_NUM_RETRIES = 10; // then update timeout
|
|
|
|
const int SUBSCRIPTION_REQUEST_TIMEOUT = 60; //in second
|
|
|
|
const int SUBSCRIPTION_REQUEST_TIMEOUT = 60; //in second
|
|
|
|
|
|
|
|
|
|
|
|
const uint16_t ADDRESS_RESOLVER_DATAGRAM_PORT = 53; |
|
|
|
const uint16_t ADDRESS_RESOLVER_DATAGRAM_PORT = 53; |
|
|
@ -97,6 +98,7 @@ namespace client |
|
|
|
std::map<uint32_t, std::string> m_Lookups; // nonce -> address
|
|
|
|
std::map<uint32_t, std::string> m_Lookups; // nonce -> address
|
|
|
|
AddressBookStorage * m_Storage; |
|
|
|
AddressBookStorage * m_Storage; |
|
|
|
volatile bool m_IsLoaded, m_IsDownloading; |
|
|
|
volatile bool m_IsLoaded, m_IsDownloading; |
|
|
|
|
|
|
|
int m_NumRetries; |
|
|
|
std::vector<std::shared_ptr<AddressBookSubscription> > m_Subscriptions; |
|
|
|
std::vector<std::shared_ptr<AddressBookSubscription> > m_Subscriptions; |
|
|
|
std::shared_ptr<AddressBookSubscription> m_DefaultSubscription; // in case if we don't know any addresses yet
|
|
|
|
std::shared_ptr<AddressBookSubscription> m_DefaultSubscription; // in case if we don't know any addresses yet
|
|
|
|
boost::asio::deadline_timer * m_SubscriptionsUpdateTimer; |
|
|
|
boost::asio::deadline_timer * m_SubscriptionsUpdateTimer; |
|
|
|