CppServer
1.0.4.0
C++ Server Library
|
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 () |
UDPResolver & | operator= (const UDPResolver &)=delete |
UDPResolver & | operator= (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... | |
UDP resolver.
UDP resolver is used to resolve DNS while connecting UDP clients.
Thread-safe.
Definition at line 23 of file udp_resolver.h.
CppServer::Asio::UDPResolver::UDPResolver | ( | const std::shared_ptr< Service > & | service | ) |
Initialize resolver with a given Asio service.
service | - Asio service |
Definition at line 14 of file udp_resolver.cpp.
|
delete |
|
delete |
|
inlinevirtual |
Definition at line 33 of file udp_resolver.h.
|
inlinevirtual |
Cancel any asynchronous operations that are waiting on the resolver.
Definition at line 48 of file udp_resolver.h.
|
inlinenoexcept |
Get the Asio IO service.
Definition at line 41 of file udp_resolver.h.
|
delete |
|
delete |
|
inlinenoexcept |
Get the UDP resolver.
Definition at line 45 of file udp_resolver.h.
|
inlinenoexcept |
Get the Asio service.
Definition at line 39 of file udp_resolver.h.
|
inlinenoexcept |
Get the Asio service strand for serialized handler execution.
Definition at line 43 of file udp_resolver.h.