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

Method FindLocalAddress

libi2pd/SSU2Session.cpp:2796–2803  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2794 }
2795
2796 std::shared_ptr<const i2p::data::RouterInfo::Address> SSU2Session::FindLocalAddress () const
2797 {
2798 if (m_Address)
2799 return i2p::context.GetRouterInfo ().GetSSU2Address (m_Address->IsV4 ());
2800 else if (!m_RemoteEndpoint.address ().is_unspecified ())
2801 return i2p::context.GetRouterInfo ().GetSSU2Address (m_RemoteEndpoint.address ().is_v4 ());
2802 return nullptr;
2803 }
2804
2805 void SSU2Session::AdjustMaxPayloadSize (size_t maxMtu)
2806 {

Callers 1

IntroduceMethod · 0.80

Calls 2

GetSSU2AddressMethod · 0.80
IsV4Method · 0.45

Tested by

no test coverage detected