boost::corosio::resolve_flags

Bitmask flags for resolver queries.

Synopsis

enum class resolve_flags : unsigned int;

Description

These flags correspond to the hints parameter of getaddrinfo.

Members

Name

Description

none

No flags.

passive

Indicate that returned endpoint is intended for use as a locally bound socket endpoint.

numeric_host

Host name should be treated as a numeric string defining an IPv4 or IPv6 address and no name resolution should be attempted.

numeric_service

Service name should be treated as a numeric string defining a port number and no name resolution should be attempted.

address_configured

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.

v4_mapped

If the query protocol family is specified as IPv6, return IPv4‐mapped IPv6 addresses on finding no IPv6 addresses.

all_matching

If used with v4_mapped, return all matching IPv6 and IPv4 addresses.

Non-Member Functions

Name

Description

operator&

Intersect two resolve_flags.

operator&=

Intersect two resolve_flags.

operator|

Combine two resolve_flags.

operator|=

Combine two resolve_flags.

Created with MrDocs