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

Method SetFamily

libi2pd/RouterContext.cpp:683–698  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

681 }
682
683 void RouterContext::SetFamily (const std::string& family)
684 {
685 std::string signature;
686 if (family.length () > 0)
687 signature = i2p::data::CreateFamilySignature (family, GetIdentHash ());
688 if (signature.length () > 0)
689 {
690 m_RouterInfo.SetProperty (i2p::data::ROUTER_INFO_PROPERTY_FAMILY, family);
691 m_RouterInfo.SetProperty (i2p::data::ROUTER_INFO_PROPERTY_FAMILY_SIG, signature);
692 }
693 else
694 {
695 m_RouterInfo.DeleteProperty (i2p::data::ROUTER_INFO_PROPERTY_FAMILY);
696 m_RouterInfo.DeleteProperty (i2p::data::ROUTER_INFO_PROPERTY_FAMILY_SIG);
697 }
698 }
699
700 void RouterContext::SetBandwidth (char L)
701 {

Callers 1

initMethod · 0.80

Calls 3

CreateFamilySignatureFunction · 0.85
SetPropertyMethod · 0.80
DeletePropertyMethod · 0.80

Tested by

no test coverage detected