\hypertarget{group__network__address__information__constants}{}\doxysection{Network Address Information Constants}
\label{group__network__address__information__constants}\index{Network Address Information Constants@{Network Address Information Constants}}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{group__network__address__information__constants_ga4758a93032a616834593a3172740b973}\label{group__network__address__information__constants_ga4758a93032a616834593a3172740b973}} 
const {\bfseries Qore\+::\+AI\+\_\+\+ADDRCONFIG} = AI\+\_\+\+ADDRCONFIG
\begin{DoxyCompactList}\small\item\em if this bit is set, addresses of each family are returned only if they are configured on the system \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__network__address__information__constants_ga6b06ba8ece0c3d06c2eaead5a0b3735b}\label{group__network__address__information__constants_ga6b06ba8ece0c3d06c2eaead5a0b3735b}} 
const {\bfseries Qore\+::\+AI\+\_\+\+ALL} = AI\+\_\+\+ALL
\begin{DoxyCompactList}\small\item\em If this bit is set along with AI\+\_\+\+V4\+MAPPED then all matching IPv6 and IPv4 addresses are returned. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__network__address__information__constants_ga4f24f51906ead287cd6e6cac80b344cb}\label{group__network__address__information__constants_ga4f24f51906ead287cd6e6cac80b344cb}} 
const {\bfseries Qore\+::\+AI\+\_\+\+CANONNAME} = AI\+\_\+\+CANONNAME
\begin{DoxyCompactList}\small\item\em If this bit is set, then \mbox{\hyperlink{group__library__functions_ga30a65bf8f992dd435b05f92c3fa734e5}{getaddrinfo()}} will return the canonical name of the hostname in the {\ttfamily \char`\"{}canonname\char`\"{}} key of the first element returned. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__network__address__information__constants_ga41a7aa51148c443dcab4262b6d5eed56}\label{group__network__address__information__constants_ga41a7aa51148c443dcab4262b6d5eed56}} 
const {\bfseries Qore\+::\+AI\+\_\+\+NUMERICHOST} = AI\+\_\+\+NUMERICHOST
\begin{DoxyCompactList}\small\item\em If this bit is set, then the host is assumed to be an address and no hostname lookup will be preformed. \end{DoxyCompactList}\item 
const \mbox{\hyperlink{group__network__address__information__constants_gac31474a7abb330fc937a0f501875755c}{Qore\+::\+AI\+\_\+\+NUMERICSERV}} = AI\+\_\+\+NUMERICSERV
\begin{DoxyCompactList}\small\item\em If this bit is set, then the service is assumed to be a numeric port string, and no service lookup will be performed. \end{DoxyCompactList}\item 
const \mbox{\hyperlink{group__network__address__information__constants_gaf18e12f435604a899f9f5fa8fee83a8d}{Qore\+::\+AI\+\_\+\+PASSIVE}} = AI\+\_\+\+PASSIVE
\begin{DoxyCompactList}\small\item\em If this bit is set, then the returned information should be usable for a call to \mbox{\hyperlink{class_qore_1_1_socket_a84303b48fef02b3a1e2b29184ac53bc8}{Socket\+::bind()}} \end{DoxyCompactList}\item 
const \mbox{\hyperlink{group__network__address__information__constants_gad17072ef3c5d0a9081cd239ff7e15a4e}{Qore\+::\+AI\+\_\+\+V4\+MAPPED}} = AI\+\_\+\+V4\+MAPPED
\begin{DoxyCompactList}\small\item\em If this bit is set, \mbox{\hyperlink{group__library__functions_ga30a65bf8f992dd435b05f92c3fa734e5}{getaddrinfo()}} will return IPv4-\/mapped IPv6 addresses on finding no matching IPv6 addresses. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
These are the possible network address information constants for the \mbox{\hyperlink{group__library__functions_ga30a65bf8f992dd435b05f92c3fa734e5}{getaddrinfo()}} function; if any of these constants are not defined on the current platform, they will be assigned to 0 in Qore 

\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{group__network__address__information__constants_gac31474a7abb330fc937a0f501875755c}\label{group__network__address__information__constants_gac31474a7abb330fc937a0f501875755c}} 
\index{Network Address Information Constants@{Network Address Information Constants}!AI\_NUMERICSERV@{AI\_NUMERICSERV}}
\index{AI\_NUMERICSERV@{AI\_NUMERICSERV}!Network Address Information Constants@{Network Address Information Constants}}
\doxysubsubsection{\texorpdfstring{AI\_NUMERICSERV}{AI\_NUMERICSERV}}
{\footnotesize\ttfamily const Qore\+::\+AI\+\_\+\+NUMERICSERV = AI\+\_\+\+NUMERICSERV}



If this bit is set, then the service is assumed to be a numeric port string, and no service lookup will be performed. 

If the AI\+\_\+\+NUMERICSERV bit is set, then any service name string supplied will be treated as a numeric port string. Otherwise, a {\ttfamily QOREADDRINFO-\/\+GETINFO-\/\+ERROR} exception will be thrown due to the {\ttfamily EAI\+\_\+\+NONAME} error raised internally. This bit prevents any type of name resolution service (for example, NIS+) from being invoked (this constant is operating system dependent; it is not available on all operating systems). \mbox{\Hypertarget{group__network__address__information__constants_gaf18e12f435604a899f9f5fa8fee83a8d}\label{group__network__address__information__constants_gaf18e12f435604a899f9f5fa8fee83a8d}} 
\index{Network Address Information Constants@{Network Address Information Constants}!AI\_PASSIVE@{AI\_PASSIVE}}
\index{AI\_PASSIVE@{AI\_PASSIVE}!Network Address Information Constants@{Network Address Information Constants}}
\doxysubsubsection{\texorpdfstring{AI\_PASSIVE}{AI\_PASSIVE}}
{\footnotesize\ttfamily const Qore\+::\+AI\+\_\+\+PASSIVE = AI\+\_\+\+PASSIVE}



If this bit is set, then the returned information should be usable for a call to \mbox{\hyperlink{class_qore_1_1_socket_a84303b48fef02b3a1e2b29184ac53bc8}{Socket\+::bind()}} 

In this case, if the hostname is not given, then the return value will be usable for binding on all addresses for the given family.

If the AI\+\_\+\+PASSIVE bit is not set, the returned socket address structure will be ready for use in a call to \mbox{\hyperlink{class_qore_1_1_socket_a7e0dc386a95c3c6a0e1cc12269d4374b}{Socket\+::connect()}}.

The IP address portion of the socket address structure will be set to the loopback address if hostname is \mbox{\hyperlink{basic_data_types_nothing}{NOTHING}} and AI\+\_\+\+PASSIVE is not set. \mbox{\Hypertarget{group__network__address__information__constants_gad17072ef3c5d0a9081cd239ff7e15a4e}\label{group__network__address__information__constants_gad17072ef3c5d0a9081cd239ff7e15a4e}} 
\index{Network Address Information Constants@{Network Address Information Constants}!AI\_V4MAPPED@{AI\_V4MAPPED}}
\index{AI\_V4MAPPED@{AI\_V4MAPPED}!Network Address Information Constants@{Network Address Information Constants}}
\doxysubsubsection{\texorpdfstring{AI\_V4MAPPED}{AI\_V4MAPPED}}
{\footnotesize\ttfamily const Qore\+::\+AI\+\_\+\+V4\+MAPPED = AI\+\_\+\+V4\+MAPPED}



If this bit is set, \mbox{\hyperlink{group__library__functions_ga30a65bf8f992dd435b05f92c3fa734e5}{getaddrinfo()}} will return IPv4-\/mapped IPv6 addresses on finding no matching IPv6 addresses. 

The AI\+\_\+\+V4\+MAPPED flag is ignored unless family is AF\+\_\+\+INET6 