MCPcopy Create free account
hub / github.com/PurpleI2P/i2pd / SaveEtag

Method SaveEtag

libi2pd_client/AddressBook.cpp:290–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288 }
289
290 void AddressBookFilesystemStorage::SaveEtag (const i2p::data::IdentHash& subscription, const std::string& etag, const std::string& lastModified)
291 {
292 std::string fname = etagsPath + i2p::fs::dirSep + subscription.ToBase32 () + ".txt";
293 std::ofstream f (fname, std::ofstream::out | std::ofstream::trunc);
294 if (f)
295 {
296 f << etag << std::endl;
297 f<< lastModified << std::endl;
298 }
299 }
300
301 bool AddressBookFilesystemStorage::GetEtag (const i2p::data::IdentHash& subscription, std::string& etag, std::string& lastModified)
302 {

Callers 1

DownloadCompleteMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected