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