/usr/include/boost/asio/ip
NameSizeModeActions
detail/-0755rm
impl/-0755rm
address.hpp83130644editdlrm
address_v4.hpp100940644editdlrm
address_v4_iterator.hpp42600644editdlrm
address_v4_range.hpp33920644editdlrm
address_v6.hpp105690644editdlrm
address_v6_iterator.hpp46020644editdlrm
address_v6_range.hpp33350644editdlrm
bad_address_cast.hpp13170644editdlrm
basic_endpoint.hpp74540644editdlrm
basic_resolver.hpp449490644editdlrm
basic_resolver_entry.hpp30200644editdlrm
basic_resolver_iterator.hpp51540644editdlrm
basic_resolver_query.hpp93560644editdlrm
basic_resolver_results.hpp97490644editdlrm
host_name.hpp11060644editdlrm
icmp.hpp28650644editdlrm
multicast.hpp54960644editdlrm
network_v4.hpp72830644editdlrm
network_v6.hpp65000644editdlrm
resolver_base.hpp37720644editdlrm
resolver_query_base.hpp11690644editdlrm
tcp.hpp39280644editdlrm
udp.hpp26600644editdlrm
unicast.hpp17850644editdlrm
v6_only.hpp18090644editdlrm
Edit: /usr/include/boost/asio/ip/resolver_base.hpp (3772B)
// // ip/resolver_base.hpp // ~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2020 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #ifndef BOOST_ASIO_IP_RESOLVER_BASE_HPP #define BOOST_ASIO_IP_RESOLVER_BASE_HPP #if defined(_MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) #include #include #include namespace boost { namespace asio { namespace ip { /// The resolver_base class is used as a base for the basic_resolver class /// templates to provide a common place to define the flag constants. class resolver_base { public: #if defined(GENERATING_DOCUMENTATION) /// A bitmask type (C++ Std [lib.bitmask.types]). typedef unspecified flags; /// Determine the canonical name of the host specified in the query. static const flags canonical_name = implementation_defined; /// Indicate that returned endpoint is intended for use as a locally bound /// socket endpoint. static const flags passive = implementation_defined; /// Host name should be treated as a numeric string defining an IPv4 or IPv6 /// address and no name resolution should be attempted. static const flags numeric_host = implementation_defined; /// Service name should be treated as a numeric string defining a port number /// and no name resolution should be attempted. static const flags numeric_service = implementation_defined; /// If the query protocol family is specified as IPv6, return IPv4-mapped /// IPv6 addresses on finding no IPv6 addresses. static const flags v4_mapped = implementation_defined; /// If used with v4_mapped, return all matching IPv6 and IPv4 addresses. static const flags all_matching = implementation_defined; /// Only return IPv4 addresses if a non-loopback IPv4 address is configured /// for the system. Only return IPv6 addresses if a non-loopback IPv6 address /// is configured for the system. static const flags address_configured = implementation_defined; #else enum flags { canonical_name = BOOST_ASIO_OS_DEF(AI_CANONNAME), passive = BOOST_ASIO_OS_DEF(AI_PASSIVE), numeric_host = BOOST_ASIO_OS_DEF(AI_NUMERICHOST), numeric_service = BOOST_ASIO_OS_DEF(AI_NUMERICSERV), v4_mapped = BOOST_ASIO_OS_DEF(AI_V4MAPPED), all_matching = BOOST_ASIO_OS_DEF(AI_ALL), address_configured = BOOST_ASIO_OS_DEF(AI_ADDRCONFIG) }; // Implement bitmask operations as shown in C++ Std [lib.bitmask.types]. friend flags operator&(flags x, flags y) { return static_cast( static_cast(x) & static_cast(y)); } friend flags operator|(flags x, flags y) { return static_cast( static_cast(x) | static_cast(y)); } friend flags operator^(flags x, flags y) { return static_cast( static_cast(x) ^ static_cast(y)); } friend flags operator~(flags x) { return static_cast(~static_cast(x)); } friend flags& operator&=(flags& x, flags y) { x = x & y; return x; } friend flags& operator|=(flags& x, flags y) { x = x | y; return x; } friend flags& operator^=(flags& x, flags y) { x = x ^ y; return x; } #endif protected: /// Protected destructor to prevent deletion through this type. ~resolver_base() { } }; } // namespace ip } // namespace asio } // namespace boost #include #endif // BOOST_ASIO_IP_RESOLVER_BASE_HPP