An query to be passed to a resolver. More...
#include <basic_resolver_query.hpp>
Public Types | |
typedef InternetProtocol | protocol_type |
The protocol type associated with the endpoint query. | |
Public Member Functions | |
basic_resolver_query (const std::string &service_name, int flags=passive|address_configured) | |
Construct with specified service name for any protocol. | |
basic_resolver_query (const protocol_type &protocol, const std::string &service_name, int flags=passive|address_configured) | |
Construct with specified service name for a given protocol. | |
basic_resolver_query (const std::string &host_name, const std::string &service_name, int flags=address_configured) | |
Construct with specified host name and service name for any protocol. | |
basic_resolver_query (const protocol_type &protocol, const std::string &host_name, const std::string &service_name, int flags=address_configured) | |
Construct with specified host name and service name for a given protocol. | |
const asio::detail::addrinfo_type & | hints () const |
Get the hints associated with the query. | |
std::string | host_name () const |
Get the host name associated with the query. | |
std::string | service_name () const |
Get the service name associated with the query. | |
Private Attributes | |
asio::detail::addrinfo_type | hints_ |
std::string | host_name_ |
std::string | service_name_ |
An query to be passed to a resolver.
The asio::ip::basic_resolver_query class template describes a query that can be passed to a resolver.
Definition at line 41 of file basic_resolver_query.hpp.
typedef InternetProtocol asio::ip::basic_resolver_query< InternetProtocol >::protocol_type |
The protocol type associated with the endpoint query.
Definition at line 46 of file basic_resolver_query.hpp.
asio::ip::basic_resolver_query< InternetProtocol >::basic_resolver_query | ( | const std::string & | service_name, |
int | flags = passive | address_configured |
||
) | [inline] |
Construct with specified service name for any protocol.
Definition at line 49 of file basic_resolver_query.hpp.
asio::ip::basic_resolver_query< InternetProtocol >::basic_resolver_query | ( | const protocol_type & | protocol, |
const std::string & | service_name, | ||
int | flags = passive | address_configured |
||
) | [inline] |
Construct with specified service name for a given protocol.
Definition at line 67 of file basic_resolver_query.hpp.
asio::ip::basic_resolver_query< InternetProtocol >::basic_resolver_query | ( | const std::string & | host_name, |
const std::string & | service_name, | ||
int | flags = address_configured |
||
) | [inline] |
Construct with specified host name and service name for any protocol.
Definition at line 85 of file basic_resolver_query.hpp.
asio::ip::basic_resolver_query< InternetProtocol >::basic_resolver_query | ( | const protocol_type & | protocol, |
const std::string & | host_name, | ||
const std::string & | service_name, | ||
int | flags = address_configured |
||
) | [inline] |
Construct with specified host name and service name for a given protocol.
Definition at line 103 of file basic_resolver_query.hpp.
const asio::detail::addrinfo_type& asio::ip::basic_resolver_query< InternetProtocol >::hints | ( | ) | const [inline] |
Get the hints associated with the query.
Definition at line 121 of file basic_resolver_query.hpp.
std::string asio::ip::basic_resolver_query< InternetProtocol >::host_name | ( | ) | const [inline] |
Get the host name associated with the query.
Definition at line 127 of file basic_resolver_query.hpp.
std::string asio::ip::basic_resolver_query< InternetProtocol >::service_name | ( | ) | const [inline] |
Get the service name associated with the query.
Definition at line 133 of file basic_resolver_query.hpp.
asio::detail::addrinfo_type asio::ip::basic_resolver_query< InternetProtocol >::hints_ [private] |
Definition at line 139 of file basic_resolver_query.hpp.
std::string asio::ip::basic_resolver_query< InternetProtocol >::host_name_ [private] |
Definition at line 140 of file basic_resolver_query.hpp.
std::string asio::ip::basic_resolver_query< InternetProtocol >::service_name_ [private] |
Definition at line 141 of file basic_resolver_query.hpp.