llarp::service::IServiceLookup
Inherited by llarp::service::HiddenServiceAddressLookup
Public Functions
| Name | |
|---|---|
| IServiceLookup() =delete | |
| virtual | ~IServiceLookup() =default |
| virtual bool | HandleIntrosetResponse(const std::set< EncryptedIntroSet > & ) handle lookup result for introsets |
| virtual bool | HandleNameResponse(std::optional< Address > ) handle lookup result for introsets |
| virtual void | HandleTimeout() |
| bool | IsTimedOut(llarp_time_t now) const determine if this request has timed out |
| llarp_time_t | TimeLeft(llarp_time_t now) const return how long this request has left to be fufilled |
| virtual std::shared_ptr< routing::IMessage > | BuildRequestMessage() =0 build request message for service lookup |
| virtual bool | SendRequestViaPath(path::Path_ptr p, AbstractRouter * r) build a new request message and send it via a path |
| virtual bool | IsFor(EndpointBase::AddressVariant_t ) const return true if this lookup is for a remote address |
Protected Functions
| Name | |
|---|---|
| IServiceLookup(ILookupHolder * parent, uint64_t tx, std::string name, llarp_time_t timeout =10s) |
Public Attributes
| Name | |
|---|---|
| ILookupHolder * | m_parent |
| uint64_t | txid |
| const std::string | name |
| RouterID | endpoint |
Protected Attributes
| Name | |
|---|---|
| const llarp_time_t | m_created |
| const llarp_time_t | m_timeout |
Public Functions Documentation
function IServiceLookup
IServiceLookup() =delete
function ~IServiceLookup
virtual ~IServiceLookup() =default
function HandleIntrosetResponse
inline virtual bool HandleIntrosetResponse(
const std::set< EncryptedIntroSet > &
)
handle lookup result for introsets
Reimplemented by: llarp::service::HiddenServiceAddressLookup::HandleIntrosetResponse
function HandleNameResponse
inline virtual bool HandleNameResponse(
std::optional< Address >
)
handle lookup result for introsets
function HandleTimeout
inline virtual void HandleTimeout()
function IsTimedOut
inline bool IsTimedOut(
llarp_time_t now
) const
determine if this request has timed out
function TimeLeft
inline llarp_time_t TimeLeft(
llarp_time_t now
) const
return how long this request has left to be fufilled
function BuildRequestMessage
virtual std::shared_ptr< routing::IMessage > BuildRequestMessage() =0
build request message for service lookup
Reimplemented by: llarp::service::HiddenServiceAddressLookup::BuildRequestMessage
function SendRequestViaPath
virtual bool SendRequestViaPath(
path::Path_ptr p,
AbstractRouter * r
)
build a new request message and send it via a path
function IsFor
inline virtual bool IsFor(
EndpointBase::AddressVariant_t
) const
return true if this lookup is for a remote address
Reimplemented by: llarp::service::HiddenServiceAddressLookup::IsFor
Protected Functions Documentation
function IServiceLookup
IServiceLookup(
ILookupHolder * parent,
uint64_t tx,
std::string name,
llarp_time_t timeout =10s
)
Public Attributes Documentation
variable m_parent
ILookupHolder * m_parent;
variable txid
uint64_t txid;
variable name
const std::string name;
variable endpoint
RouterID endpoint;
Protected Attributes Documentation
variable m_created
const llarp_time_t m_created;
variable m_timeout
const llarp_time_t m_timeout;
Updated on 2026-01-10 at 22:49:45 +0000