mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-10-29 11:05:43 +00:00
18 lines
423 B
C++
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
|