MCPcopy Create free account
hub / github.com/ElementsProject/elements / Get

Method Get

src/i2p.cpp:233–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231// Private methods
232
233std::string Session::Reply::Get(const std::string& key) const
234{
235 const auto& pos = keys.find(key);
236 if (pos == keys.end() || !pos->second.has_value()) {
237 throw std::runtime_error(
238 strprintf("Missing %s= in the reply to \"%s\": \"%s\"", key, request, full));
239 }
240 return pos->second.value();
241}
242
243template <typename... Args>
244void Session::Log(const std::string& fmt, const Args&... args) const

Callers 15

ConnectMethod · 0.45
DestGenerateMethod · 0.45
StreamAcceptMethod · 0.45
DisconnectMethod · 0.45
SerializeFileDBFunction · 0.45
ConnectSocketDirectlyFunction · 0.45
ReadMethod · 0.45
ExistsMethod · 0.45
DumpMempoolFunction · 0.45
ConnectNodeMethod · 0.45
AcceptConnectionMethod · 0.45

Calls 3

findMethod · 0.80
endMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected