xrpld
Loading...
Searching...
No Matches
xrpl::Resolver Class Referenceabstract

#include <Resolver.h>

Inheritance diagram for xrpl::Resolver:

Public Types

using HandlerType = std::function<void(std::string, std::vector<beast::IP::Endpoint>)>

Public Member Functions

virtual ~Resolver ()=0
virtual void stopAsync ()=0
 Issue an asynchronous stop request.
virtual void stop ()=0
 Issue a synchronous stop request.
virtual void start ()=0
 Issue a synchronous start request.
template<class Handler>
void resolve (std::vector< std::string > const &names, Handler handler)
 resolve all hostnames on the list
virtual void resolve (std::vector< std::string > const &names, HandlerType const &handler)=0

Detailed Description

Definition at line 10 of file Resolver.h.

Member Typedef Documentation

◆ HandlerType

Constructor & Destructor Documentation

◆ ~Resolver()

xrpl::Resolver::~Resolver ( )
pure virtualdefault

Member Function Documentation

◆ stopAsync()

virtual void xrpl::Resolver::stopAsync ( )
pure virtual

Issue an asynchronous stop request.

Implemented in xrpl::ResolverAsioImpl.

◆ stop()

virtual void xrpl::Resolver::stop ( )
pure virtual

Issue a synchronous stop request.

Implemented in xrpl::ResolverAsioImpl.

◆ start()

virtual void xrpl::Resolver::start ( )
pure virtual

Issue a synchronous start request.

Implemented in xrpl::ResolverAsioImpl.

◆ resolve() [1/2]

template<class Handler>
void xrpl::Resolver::resolve ( std::vector< std::string > const & names,
Handler handler )

resolve all hostnames on the list

Parameters
namesthe names to be resolved
handlerthe handler to call

Definition at line 36 of file Resolver.h.

◆ resolve() [2/2]

virtual void xrpl::Resolver::resolve ( std::vector< std::string > const & names,
HandlerType const & handler )
pure virtual

Implemented in xrpl::ResolverAsioImpl.