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

Method SetRouterStatus

libi2pd/SSU2Session.cpp:2837–2846  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2835 }
2836
2837 void SSU2Session::SetRouterStatus (RouterStatus status) const
2838 {
2839 if (m_Address)
2840 {
2841 if (m_Address->IsV4 ())
2842 i2p::context.SetStatus (status);
2843 else if (m_Address->IsV6 ())
2844 i2p::context.SetStatusV6 (status);
2845 }
2846 }
2847
2848 bool SSU2Session::GetTestingState () const
2849 {

Callers

nothing calls this directly

Calls 4

SetStatusMethod · 0.80
SetStatusV6Method · 0.80
IsV4Method · 0.45
IsV6Method · 0.45

Tested by

no test coverage detected