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

Method StartLookups

libi2pd_client/AddressBook.cpp:810–822  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

808 }
809
810 void AddressBook::StartLookups ()
811 {
812 auto dest = i2p::client::context.GetSharedLocalDestination ();
813 if (dest)
814 {
815 auto datagram = dest->GetDatagramDestination ();
816 if (!datagram)
817 datagram = dest->CreateDatagramDestination ();
818 datagram->SetReceiver (std::bind (&AddressBook::HandleLookupResponse, this,
819 std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4, std::placeholders::_5),
820 ADDRESS_RESPONSE_DATAGRAM_PORT);
821 }
822 }
823
824 void AddressBook::StopLookups ()
825 {

Callers

nothing calls this directly

Calls 4

SetReceiverMethod · 0.80

Tested by

no test coverage detected