mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
* Addressbook.{cpp,h}:
* Request() now renamed and returns value * move spawning download thread to Addressbook class * CheckSubscription() renamed and handles return value of Request()
This commit is contained in:
parent
b6c336bf72
commit
cbfb1edb79
2 changed files with 33 additions and 23 deletions
|
@ -112,16 +112,17 @@ namespace client
|
|||
public:
|
||||
|
||||
AddressBookSubscription (AddressBook& book, const std::string& link);
|
||||
void CheckSubscription ();
|
||||
void CheckUpdates ();
|
||||
|
||||
private:
|
||||
|
||||
void Request ();
|
||||
bool MakeRequest ();
|
||||
|
||||
private:
|
||||
|
||||
AddressBook& m_Book;
|
||||
std::string m_Link, m_Etag, m_LastModified;
|
||||
i2p::data::IdentHash m_Ident;
|
||||
// m_Etag must be surrounded by ""
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue