123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- #ifndef BOOST_ASIO_IP_RESOLVER_QUERY_BASE_HPP
- #define BOOST_ASIO_IP_RESOLVER_QUERY_BASE_HPP
- #if defined(_MSC_VER) && (_MSC_VER >= 1200)
- # pragma once
- #endif
- #include <boost/asio/detail/push_options.hpp>
- #include <boost/asio/detail/push_options.hpp>
- #include <boost/config.hpp>
- #include <boost/detail/workaround.hpp>
- #include <boost/asio/detail/pop_options.hpp>
- #include <boost/asio/detail/socket_types.hpp>
- namespace boost {
- namespace asio {
- namespace ip {
- class resolver_query_base
- {
- public:
- #if defined(GENERATING_DOCUMENTATION)
-
- static const int canonical_name = implementation_defined;
-
-
- static const int passive = implementation_defined;
-
-
- static const int numeric_host = implementation_defined;
-
-
- static const int numeric_service = implementation_defined;
-
-
- static const int v4_mapped = implementation_defined;
-
- static const int all_matching = implementation_defined;
-
-
-
- static const int address_configured = implementation_defined;
- #else
- BOOST_STATIC_CONSTANT(int, canonical_name = AI_CANONNAME);
- BOOST_STATIC_CONSTANT(int, passive = AI_PASSIVE);
- BOOST_STATIC_CONSTANT(int, numeric_host = AI_NUMERICHOST);
- # if defined(AI_NUMERICSERV)
- BOOST_STATIC_CONSTANT(int, numeric_service = AI_NUMERICSERV);
- # else
- BOOST_STATIC_CONSTANT(int, numeric_service = 0);
- # endif
-
-
- # if defined(AI_V4MAPPED) && !defined(__QNXNTO__)
- BOOST_STATIC_CONSTANT(int, v4_mapped = AI_V4MAPPED);
- # else
- BOOST_STATIC_CONSTANT(int, v4_mapped = 0);
- # endif
- # if defined(AI_ALL) && !defined(__QNXNTO__)
- BOOST_STATIC_CONSTANT(int, all_matching = AI_ALL);
- # else
- BOOST_STATIC_CONSTANT(int, all_matching = 0);
- # endif
- # if defined(AI_ADDRCONFIG) && !defined(__QNXNTO__)
- BOOST_STATIC_CONSTANT(int, address_configured = AI_ADDRCONFIG);
- # else
- BOOST_STATIC_CONSTANT(int, address_configured = 0);
- # endif
- #endif
- protected:
-
- ~resolver_query_base()
- {
- }
- #if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564))
- private:
-
- char dummy_;
- #endif
- };
- }
- }
- }
- #include <boost/asio/detail/pop_options.hpp>
- #endif
|