62 std::string_view a_node,
65 std::string_view a_service,
72 const int a_flags = 0,
75 const int a_socktype = SOCK_STREAM);
84 std::string_view a_node,
91 const int a_flags = 0,
94 const int a_socktype = SOCK_STREAM);
130 const ::addrinfo* operator->()
const noexcept;
185 bool get_next()
noexcept;
207 const std::string& what()
const;
213 DISABLE_MSVC_WARN_4251
214 const std::string m_node;
215 const std::string m_service;
225 ::addrinfo* m_res{&m_hints};
229 ::addrinfo* m_res_current{&m_hints};
232 SUPPRESS_MSVC_WARN_4251_NEXT_LINE
233 std::string m_error_msg{
"Success."};
236 void free_addrinfo()
noexcept;