lokinet/llarp/service/lookup.cpp

18 lines
423 B
C++
Raw Normal View History

2018-07-18 03:10:21 +00:00
#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