16 _io_service(_service->GetAsioService()),
17 _strand(*_io_service),
18 _strand_required(_service->IsStrandRequired()),
19 _resolver(*_io_service)
21 assert((
service !=
nullptr) &&
"Asio service is invalid!");
23 throw CppCommon::ArgumentException(
"Asio service is invalid!");
std::shared_ptr< Service > & service() noexcept
Get the Asio service.
TCPResolver(const std::shared_ptr< Service > &service)
Initialize resolver with a given Asio service.
C++ Server project definitions.