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

Method AddressResolver

libi2pd_client/AddressBook.cpp:1080–1092  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1078 }
1079
1080 AddressResolver::AddressResolver (std::shared_ptr<ClientDestination> destination):
1081 m_LocalDestination (destination)
1082 {
1083 if (m_LocalDestination)
1084 {
1085 auto datagram = m_LocalDestination->GetDatagramDestination ();
1086 if (!datagram)
1087 datagram = m_LocalDestination->CreateDatagramDestination ();
1088 datagram->SetReceiver (std::bind (&AddressResolver::HandleRequest, this,
1089 std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4, std::placeholders::_5),
1090 ADDRESS_RESOLVER_DATAGRAM_PORT);
1091 }
1092 }
1093
1094 AddressResolver::~AddressResolver ()
1095 {

Callers

nothing calls this directly

Calls 3

SetReceiverMethod · 0.80

Tested by

no test coverage detected