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

Method Start

libi2pd/Destination.cpp:138–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136 }
137
138 void LeaseSetDestination::Start ()
139 {
140 if (m_Nickname.empty ())
141 m_Nickname = i2p::data::GetIdentHashAbbreviation (GetIdentHash ()); // set default nickname
142 LoadTags ();
143 m_Pool->SetLocalDestination (shared_from_this ());
144 m_Pool->SetActive (true);
145 m_CleanupTimer.expires_after (std::chrono::seconds (DESTINATION_CLEANUP_TIMEOUT));
146 m_CleanupTimer.async_wait (std::bind (&LeaseSetDestination::HandleCleanupTimer,
147 shared_from_this (), std::placeholders::_1));
148 }
149
150 void LeaseSetDestination::Stop ()
151 {

Callers 1

SetPrivateKeysMethod · 0.45

Calls 3

GetIdentHashAbbreviationFunction · 0.85
SetActiveMethod · 0.80
SetLocalDestinationMethod · 0.45

Tested by

no test coverage detected