| 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 | { |
nothing calls this directly
no test coverage detected