CppServer  1.0.4.0
C++ Server Library
Public Member Functions | List of all members
CppServer::Asio::UDPResolver Class Reference

UDP resolver. More...

#include <udp_resolver.h>

Public Member Functions

 UDPResolver (const std::shared_ptr< Service > &service)
 Initialize resolver with a given Asio service. More...
 
 UDPResolver (const UDPResolver &)=delete
 
 UDPResolver (UDPResolver &&)=delete
 
virtual ~UDPResolver ()
 
UDPResolveroperator= (const UDPResolver &)=delete
 
UDPResolveroperator= (UDPResolver &&)=delete
 
std::shared_ptr< Service > & service () noexcept
 Get the Asio service. More...
 
std::shared_ptr< asio::io_service > & io_service () noexcept
 Get the Asio IO service. More...
 
asio::io_service::strand & strand () noexcept
 Get the Asio service strand for serialized handler execution. More...
 
asio::ip::udp::resolver & resolver () noexcept
 Get the UDP resolver. More...
 
virtual void Cancel ()
 Cancel any asynchronous operations that are waiting on the resolver. More...
 

Detailed Description

UDP resolver.

UDP resolver is used to resolve DNS while connecting UDP clients.

Thread-safe.

Definition at line 23 of file udp_resolver.h.

Constructor & Destructor Documentation

◆ UDPResolver() [1/3]

CppServer::Asio::UDPResolver::UDPResolver ( const std::shared_ptr< Service > &  service)

Initialize resolver with a given Asio service.

Parameters
service- Asio service

Definition at line 14 of file udp_resolver.cpp.

◆ UDPResolver() [2/3]

CppServer::Asio::UDPResolver::UDPResolver ( const UDPResolver )
delete

◆ UDPResolver() [3/3]

CppServer::Asio::UDPResolver::UDPResolver ( UDPResolver &&  )
delete

◆ ~UDPResolver()

virtual CppServer::Asio::UDPResolver::~UDPResolver ( )
inlinevirtual

Definition at line 33 of file udp_resolver.h.

Member Function Documentation

◆ Cancel()

virtual void CppServer::Asio::UDPResolver::Cancel ( )
inlinevirtual

Cancel any asynchronous operations that are waiting on the resolver.

Definition at line 48 of file udp_resolver.h.

◆ io_service()

std::shared_ptr<asio::io_service>& CppServer::Asio::UDPResolver::io_service ( )
inlinenoexcept

Get the Asio IO service.

Definition at line 41 of file udp_resolver.h.

◆ operator=() [1/2]

UDPResolver& CppServer::Asio::UDPResolver::operator= ( const UDPResolver )
delete

◆ operator=() [2/2]

UDPResolver& CppServer::Asio::UDPResolver::operator= ( UDPResolver &&  )
delete

◆ resolver()

asio::ip::udp::resolver& CppServer::Asio::UDPResolver::resolver ( )
inlinenoexcept

Get the UDP resolver.

Definition at line 45 of file udp_resolver.h.

◆ service()

std::shared_ptr<Service>& CppServer::Asio::UDPResolver::service ( )
inlinenoexcept

Get the Asio service.

Definition at line 39 of file udp_resolver.h.

◆ strand()

asio::io_service::strand& CppServer::Asio::UDPResolver::strand ( )
inlinenoexcept

Get the Asio service strand for serialized handler execution.

Definition at line 43 of file udp_resolver.h.


The documentation for this class was generated from the following files: