\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}}


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


\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{group__network__address__information__constants_ga4758a93032a616834593a3172740b973}\label{group__network__address__information__constants_ga4758a93032a616834593a3172740b973}} 
const \mbox{\hyperlink{group__network__address__information__constants_ga4758a93032a616834593a3172740b973}{Qore\+::\+A\+I\+\_\+\+A\+D\+D\+R\+C\+O\+N\+F\+IG}} = A\+I\+\_\+\+A\+D\+D\+R\+C\+O\+N\+F\+IG
\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 \mbox{\hyperlink{group__network__address__information__constants_ga6b06ba8ece0c3d06c2eaead5a0b3735b}{Qore\+::\+A\+I\+\_\+\+A\+LL}} = A\+I\+\_\+\+A\+LL
\begin{DoxyCompactList}\small\item\em If this bit is set along with A\+I\+\_\+\+V4\+M\+A\+P\+P\+ED then all matching I\+Pv6 and I\+Pv4 addresses are returned. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__network__address__information__constants_ga4f24f51906ead287cd6e6cac80b344cb}\label{group__network__address__information__constants_ga4f24f51906ead287cd6e6cac80b344cb}} 
const \mbox{\hyperlink{group__network__address__information__constants_ga4f24f51906ead287cd6e6cac80b344cb}{Qore\+::\+A\+I\+\_\+\+C\+A\+N\+O\+N\+N\+A\+ME}} = A\+I\+\_\+\+C\+A\+N\+O\+N\+N\+A\+ME
\begin{DoxyCompactList}\small\item\em If this bit is set, then \mbox{\hyperlink{namespace_qore_af410921677bddb4e52d5dfe981ada25e}{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 \mbox{\hyperlink{group__network__address__information__constants_ga41a7aa51148c443dcab4262b6d5eed56}{Qore\+::\+A\+I\+\_\+\+N\+U\+M\+E\+R\+I\+C\+H\+O\+ST}} = A\+I\+\_\+\+N\+U\+M\+E\+R\+I\+C\+H\+O\+ST
\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\+::\+A\+I\+\_\+\+N\+U\+M\+E\+R\+I\+C\+S\+E\+RV}} = A\+I\+\_\+\+N\+U\+M\+E\+R\+I\+C\+S\+E\+RV
\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\+::\+A\+I\+\_\+\+P\+A\+S\+S\+I\+VE}} = A\+I\+\_\+\+P\+A\+S\+S\+I\+VE
\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\+::\+A\+I\+\_\+\+V4\+M\+A\+P\+P\+ED}} = A\+I\+\_\+\+V4\+M\+A\+P\+P\+ED
\begin{DoxyCompactList}\small\item\em If this bit is set, \mbox{\hyperlink{namespace_qore_af410921677bddb4e52d5dfe981ada25e}{getaddrinfo()}} will return I\+Pv4-\/mapped I\+Pv6 addresses on finding no matching I\+Pv6 addresses/. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
These are the possible network address information constants for the \mbox{\hyperlink{namespace_qore_af410921677bddb4e52d5dfe981ada25e}{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\+::\+A\+I\+\_\+\+N\+U\+M\+E\+R\+I\+C\+S\+E\+RV = A\+I\+\_\+\+N\+U\+M\+E\+R\+I\+C\+S\+E\+RV}



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 A\+I\+\_\+\+N\+U\+M\+E\+R\+I\+C\+S\+E\+RV bit is set, then any service name string supplied will be treated as a numeric port string. Otherwise, a {\ttfamily Q\+O\+R\+E\+A\+D\+D\+R\+I\+N\+F\+O-\/\+G\+E\+T\+I\+N\+F\+O-\/\+E\+R\+R\+OR} exception will be thrown due to the {\ttfamily E\+A\+I\+\_\+\+N\+O\+N\+A\+ME} error raised internally. This bit prevents any type of name resolution service (for example, N\+I\+S+) from being invoked (this constant is operating system dependent; it is not available on all operating systems; for example, it is not available on Solaris 8). \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\+::\+A\+I\+\_\+\+P\+A\+S\+S\+I\+VE = A\+I\+\_\+\+P\+A\+S\+S\+I\+VE}



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 A\+I\+\_\+\+P\+A\+S\+S\+I\+VE 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}{N\+O\+T\+H\+I\+NG}} and A\+I\+\_\+\+P\+A\+S\+S\+I\+VE 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\+::\+A\+I\+\_\+\+V4\+M\+A\+P\+P\+ED = A\+I\+\_\+\+V4\+M\+A\+P\+P\+ED}



If this bit is set, \mbox{\hyperlink{namespace_qore_af410921677bddb4e52d5dfe981ada25e}{getaddrinfo()}} will return I\+Pv4-\/mapped I\+Pv6 addresses on finding no matching I\+Pv6 addresses/. 

The A\+I\+\_\+\+V4\+M\+A\+P\+P\+ED flag is ignored unless family is A\+F\+\_\+\+I\+N\+E\+T6 