lokinet/llarp/service/lookup.cpp
2018-07-18 13:10:21 +10:00

18 lines
423 B
C++

#include <llarp/path.hpp>
#include <llarp/service/lookup.hpp>
namespace llarp
{
namespace service
{
bool
IServiceLookup::SendRequestViaPath(llarp::path::Path *path, llarp_router *r)
{
auto msg = BuildRequestMessage();
if(!msg)
return false;
auto result = path->SendRoutingMessage(msg, r);
delete msg;
return result;
}
} // namespace service
} // namespace llarp