\section{KNetwork::KIp\-Address Class Reference}
\label{classKNetwork_1_1KIpAddress}\index{KNetwork::KIpAddress@{KNetwork::KIpAddress}}
An IP address.  


{\tt \#include $<$ksocketaddress.h$>$}

Collaboration diagram for KNetwork::KIp\-Address:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=111pt]{classKNetwork_1_1KIpAddress__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KIp\-Address} ()
\item 
{\bf KIp\-Address} (const {\bf KIp\-Address} \&other)
\item 
{\bf KIp\-Address} (const {\bf QString} \&addr)
\item 
{\bf KIp\-Address} (const char $\ast$addr)
\item 
{\bf KIp\-Address} (const void $\ast$addr, int version=4)
\item 
{\bf KIp\-Address} (Q\_\-UINT32 ip4addr)
\item 
{\bf $\sim$KIp\-Address} ()
\item 
{\bf KIp\-Address} \& {\bf operator=} (const {\bf KIp\-Address} \&other)
\item 
bool {\bf operator==} (const {\bf KIp\-Address} \&other) const 
\item 
bool {\bf compare} (const {\bf KIp\-Address} \&other, bool check\-Mapped=true) const 
\item 
int {\bf version} () const 
\item 
bool {\bf is\-IPv4Addr} () const 
\item 
bool {\bf is\-IPv6Addr} () const 
\item 
bool {\bf set\-Address} (const {\bf QString} \&address)
\item 
bool {\bf set\-Address} (const char $\ast$address)
\item 
bool {\bf set\-Address} (const void $\ast$raw, int version=4)
\item 
{\bf QString} {\bf to\-String} () const 
\item 
const void $\ast$ {\bf addr} () const 
\item 
Q\_\-UINT32 {\bf IPv4Addr} (bool convert\-Mapped=true) const 
\item 
bool {\bf is\-Unspecified} () const 
\item 
bool {\bf is\-Localhost} () const 
\item 
bool {\bf is\-Loopback} () const 
\item 
bool {\bf is\-Class\-A} () const 
\item 
bool {\bf is\-Class\-B} () const 
\item 
bool {\bf is\-Class\-C} () const 
\item 
bool {\bf is\-Class\-D} () const 
\item 
bool {\bf is\-Multicast} () const 
\item 
bool {\bf is\-Link\-Local} () const 
\item 
bool {\bf is\-Site\-Local} () const 
\item 
bool {\bf is\-Global} () const 
\item 
bool {\bf is\-V4Mapped} () const 
\item 
bool {\bf is\-V4Compat} () const 
\item 
bool {\bf is\-Multicast\-Node\-Local} () const 
\item 
bool {\bf is\-Multicast\-Link\-Local} () const 
\item 
bool {\bf is\-Multicast\-Site\-Local} () const 
\item 
bool {\bf is\-Multicast\-Org\-Local} () const 
\item 
bool {\bf is\-Multicast\-Global} () const 
\end{CompactItemize}
\subsection*{Static Public Attributes}
\begin{CompactItemize}
\item 
static const {\bf KIp\-Address} {\bf localhost\-V4}
\item 
static const {\bf KIp\-Address} {\bf anyhost\-V4}
\item 
static const {\bf KIp\-Address} {\bf localhost\-V6}
\item 
static const {\bf KIp\-Address} {\bf anyhost\-V6}
\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
Q\_\-UINT32 {\bf m\_\-data} [4]\label{classKNetwork_1_1KIpAddress_p0}

\item 
char {\bf m\_\-version}\label{classKNetwork_1_1KIpAddress_p1}

\end{CompactItemize}


\subsection{Detailed Description}
An IP address. 

This class represents one IP address, version 4 or 6. This is only the address, not including port information or other data.

It is not a good programming practice to create address from objects like this. Instead, prefer a more thorough function like {\bf KResolver::resolve}{\rm (p.\,\pageref{classKNetwork_1_1KResolver_e1})}, which also handle extra information like scope ids.

This is a light-weight class. Most of the member functions are inlined and there are no virtual functions. This object's size should be less than 20 bytes. Also note that there is no sharing of data.

\begin{Desc}
\item[Author:]Thiago Macieira $<${\tt thiago.macieira@kdemail.net}$>$ \end{Desc}




Definition at line 62 of file ksocketaddress.h.

\subsection{Constructor \& Destructor Documentation}
\index{KNetwork::KIpAddress@{KNetwork::KIp\-Address}!KIpAddress@{KIpAddress}}
\index{KIpAddress@{KIpAddress}!KNetwork::KIpAddress@{KNetwork::KIp\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KNetwork::KIp\-Address::KIp\-Address ()\hspace{0.3cm}{\tt  [inline]}}\label{classKNetwork_1_1KIpAddress_a0}


Default constructor. 

Creates an empty address. It defaults to IP version 4. 

Definition at line 69 of file ksocketaddress.h.\index{KNetwork::KIpAddress@{KNetwork::KIp\-Address}!KIpAddress@{KIpAddress}}
\index{KIpAddress@{KIpAddress}!KNetwork::KIpAddress@{KNetwork::KIp\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KNetwork::KIp\-Address::KIp\-Address (const {\bf KIp\-Address} \& {\em other})\hspace{0.3cm}{\tt  [inline]}}\label{classKNetwork_1_1KIpAddress_a1}


Copy constructor. 

Copies the data from the other object.

Data is not shared.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em other}]the other \end{description}
\end{Desc}


Definition at line 80 of file ksocketaddress.h.\index{KNetwork::KIpAddress@{KNetwork::KIp\-Address}!KIpAddress@{KIpAddress}}
\index{KIpAddress@{KIpAddress}!KNetwork::KIpAddress@{KNetwork::KIp\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KNetwork::KIp\-Address::KIp\-Address (const {\bf QString} \& {\em addr})\hspace{0.3cm}{\tt  [inline]}}\label{classKNetwork_1_1KIpAddress_a2}


Creates an object from the given string representation. 

The IP version is guessed from the address format.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em addr}]the address \end{description}
\end{Desc}


Definition at line 90 of file ksocketaddress.h.\index{KNetwork::KIpAddress@{KNetwork::KIp\-Address}!KIpAddress@{KIpAddress}}
\index{KIpAddress@{KIpAddress}!KNetwork::KIpAddress@{KNetwork::KIp\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KNetwork::KIp\-Address::KIp\-Address (const char $\ast$ {\em addr})\hspace{0.3cm}{\tt  [inline]}}\label{classKNetwork_1_1KIpAddress_a3}


Creates an object from the given string representation. 

The IP version is guessed from the address format.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em addr}]the address \end{description}
\end{Desc}


Definition at line 100 of file ksocketaddress.h.\index{KNetwork::KIpAddress@{KNetwork::KIp\-Address}!KIpAddress@{KIpAddress}}
\index{KIpAddress@{KIpAddress}!KNetwork::KIpAddress@{KNetwork::KIp\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KNetwork::KIp\-Address::KIp\-Address (const void $\ast$ {\em addr}, int {\em version} = {\tt 4})\hspace{0.3cm}{\tt  [inline]}}\label{classKNetwork_1_1KIpAddress_a4}


Creates an object from the given raw data and IP version. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em addr}]the raw data \item[{\em version}]the IP version (4 or 6) \end{description}
\end{Desc}


Definition at line 109 of file ksocketaddress.h.\index{KNetwork::KIpAddress@{KNetwork::KIp\-Address}!KIpAddress@{KIpAddress}}
\index{KIpAddress@{KIpAddress}!KNetwork::KIpAddress@{KNetwork::KIp\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KNetwork::KIp\-Address::KIp\-Address (Q\_\-UINT32 {\em ip4addr})\hspace{0.3cm}{\tt  [inline]}}\label{classKNetwork_1_1KIpAddress_a5}


This is a convenience constructor. 

Constructs an object from the given IPv4 address in the form of an integer.

Note: do not write code to depend on IPv4 addresses being integer types. Instead, treat them as a special type, like a {\bf KIp\-Address}{\rm (p.\,\pageref{classKNetwork_1_1KIpAddress})} or the system's in\_\-addr.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em ip4addr}]the IPv4 address \end{description}
\end{Desc}


Definition at line 122 of file ksocketaddress.h.\index{KNetwork::KIpAddress@{KNetwork::KIp\-Address}!~KIpAddress@{$\sim$KIpAddress}}
\index{~KIpAddress@{$\sim$KIpAddress}!KNetwork::KIpAddress@{KNetwork::KIp\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KNetwork::KIp\-Address::$\sim${\bf KIp\-Address} ()\hspace{0.3cm}{\tt  [inline]}}\label{classKNetwork_1_1KIpAddress_a6}


Destructor. 

This frees resources associated with this object.

Note: destructor is non-virtual. The compiler will happily optimise it out of the way. 

Definition at line 131 of file ksocketaddress.h.

\subsection{Member Function Documentation}
\index{KNetwork::KIpAddress@{KNetwork::KIp\-Address}!operator=@{operator=}}
\index{operator=@{operator=}!KNetwork::KIpAddress@{KNetwork::KIp\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KIp\-Address} \& KIp\-Address::operator= (const {\bf KIp\-Address} \& {\em other})}\label{classKNetwork_1_1KIpAddress_a7}


Copy operator. 

Copies the data from the other object into this one.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em other}]the object to copy \end{description}
\end{Desc}


Definition at line 86 of file ksocketaddress.cpp.\index{KNetwork::KIpAddress@{KNetwork::KIp\-Address}!operator==@{operator==}}
\index{operator==@{operator==}!KNetwork::KIpAddress@{KNetwork::KIp\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KNetwork::KIp\-Address::operator== (const {\bf KIp\-Address} \& {\em other}) const\hspace{0.3cm}{\tt  [inline]}}\label{classKNetwork_1_1KIpAddress_a8}


Returns true if the two addresses match. 

This function performs a v4-mapped check. \begin{Desc}
\item[See also:]{\bf compare}{\rm (p.\,\pageref{classKNetwork_1_1KIpAddress_a9})} \end{Desc}


Definition at line 148 of file ksocketaddress.h.\index{KNetwork::KIpAddress@{KNetwork::KIp\-Address}!compare@{compare}}
\index{compare@{compare}!KNetwork::KIpAddress@{KNetwork::KIp\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KIp\-Address::compare (const {\bf KIp\-Address} \& {\em other}, bool {\em check\-Mapped} = {\tt true}) const}\label{classKNetwork_1_1KIpAddress_a9}


Compares this address against the other, supplied one and return true if they match. 

The {\tt check\-Mapped} parameter controls whether a check for an IPv6 v4-mapped address will be performed.

An IPv6 v4-mapped address is an IPv6 address that is, for all purposes, equivalent to an IPv4 one. The default behaviour of this function is to take that into account. If you want a strict matching, pass {\bf false} to the {\tt check\-Mapped} parameter.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em other}]the other IP address \item[{\em check\-Mapped}]whether v4-mapped addresses will be taken into account \end{description}
\end{Desc}


Definition at line 95 of file ksocketaddress.cpp.\index{KNetwork::KIpAddress@{KNetwork::KIp\-Address}!version@{version}}
\index{version@{version}!KNetwork::KIpAddress@{KNetwork::KIp\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KNetwork::KIp\-Address::version () const\hspace{0.3cm}{\tt  [inline]}}\label{classKNetwork_1_1KIpAddress_a10}


Retrieves the IP version in this object. 

\begin{Desc}
\item[Returns:]the version: 4 or 6 \end{Desc}


Definition at line 171 of file ksocketaddress.h.\index{KNetwork::KIpAddress@{KNetwork::KIp\-Address}!isIPv4Addr@{isIPv4Addr}}
\index{isIPv4Addr@{isIPv4Addr}!KNetwork::KIpAddress@{KNetwork::KIp\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KNetwork::KIp\-Address::is\-IPv4Addr () const\hspace{0.3cm}{\tt  [inline]}}\label{classKNetwork_1_1KIpAddress_a11}


Returns true if this is an IPv4 address. 



Definition at line 177 of file ksocketaddress.h.\index{KNetwork::KIpAddress@{KNetwork::KIp\-Address}!isIPv6Addr@{isIPv6Addr}}
\index{isIPv6Addr@{isIPv6Addr}!KNetwork::KIpAddress@{KNetwork::KIp\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KNetwork::KIp\-Address::is\-IPv6Addr () const\hspace{0.3cm}{\tt  [inline]}}\label{classKNetwork_1_1KIpAddress_a12}


Returns true if this is an IPv6 address. 



Definition at line 183 of file ksocketaddress.h.\index{KNetwork::KIpAddress@{KNetwork::KIp\-Address}!setAddress@{setAddress}}
\index{setAddress@{setAddress}!KNetwork::KIpAddress@{KNetwork::KIp\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KIp\-Address::set\-Address (const {\bf QString} \& {\em address})}\label{classKNetwork_1_1KIpAddress_a13}


Sets the address to the given string representation. 

\begin{Desc}
\item[Returns:]true if the address was successfully parsed; otherwise returns false and leaves the object unchanged. \end{Desc}


Definition at line 128 of file ksocketaddress.cpp.

Referenced by set\-Address().\index{KNetwork::KIpAddress@{KNetwork::KIp\-Address}!setAddress@{setAddress}}
\index{setAddress@{setAddress}!KNetwork::KIpAddress@{KNetwork::KIp\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KIp\-Address::set\-Address (const char $\ast$ {\em address})}\label{classKNetwork_1_1KIpAddress_a14}


Sets the address to the given string representation. 

\begin{Desc}
\item[Returns:]true if the address was successfully parsed; otherwise returns false and leaves the object unchanged. \end{Desc}


Definition at line 165 of file ksocketaddress.cpp.

References set\-Address().\index{KNetwork::KIpAddress@{KNetwork::KIp\-Address}!setAddress@{setAddress}}
\index{setAddress@{setAddress}!KNetwork::KIpAddress@{KNetwork::KIp\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KIp\-Address::set\-Address (const void $\ast$ {\em raw}, int {\em version} = {\tt 4})}\label{classKNetwork_1_1KIpAddress_a15}


Sets the address to the given raw binary representation. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em raw}]a pointer to the raw binary data \item[{\em version}]the IP version \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]true if the address was successfully parsed; otherwise returns false and leaves the object unchanged. \end{Desc}


Definition at line 171 of file ksocketaddress.cpp.\index{KNetwork::KIpAddress@{KNetwork::KIp\-Address}!toString@{toString}}
\index{toString@{toString}!KNetwork::KIpAddress@{KNetwork::KIp\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KIp\-Address::to\-String () const}\label{classKNetwork_1_1KIpAddress_a16}


Returns the address as a string. 



Definition at line 188 of file ksocketaddress.cpp.

References QString::from\-Latin1().\index{KNetwork::KIpAddress@{KNetwork::KIp\-Address}!addr@{addr}}
\index{addr@{addr}!KNetwork::KIpAddress@{KNetwork::KIp\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const void$\ast$ KNetwork::KIp\-Address::addr () const\hspace{0.3cm}{\tt  [inline]}}\label{classKNetwork_1_1KIpAddress_a17}


Returns a pointer to binary raw data representing the address. 



Definition at line 220 of file ksocketaddress.h.\index{KNetwork::KIpAddress@{KNetwork::KIp\-Address}!IPv4Addr@{IPv4Addr}}
\index{IPv4Addr@{IPv4Addr}!KNetwork::KIpAddress@{KNetwork::KIp\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Q\_\-UINT32 KNetwork::KIp\-Address::IPv4Addr (bool {\em convert\-Mapped} = {\tt true}) const\hspace{0.3cm}{\tt  [inline]}}\label{classKNetwork_1_1KIpAddress_a18}


This is a convenience function. 

Returns the IPv4 address in a 32-bit integer. The result is only valid if {\bf is\-IPv4Addr}{\rm (p.\,\pageref{classKNetwork_1_1KIpAddress_a11})} returns true. Alternatively, if the contained IPv6 address is a v4-mapped one and the {\tt convert\-Mapped} parameter is true, the result will also be valid.

Note: you should not treat IP addresses as integers. Instead, use types defined for that purpose, such as {\bf KIp\-Address}{\rm (p.\,\pageref{classKNetwork_1_1KIpAddress})} or the system's in\_\-addr type.

\begin{Desc}
\item[{\bf Bug}]Check if byte ordering is done right \end{Desc}


Definition at line 236 of file ksocketaddress.h.\index{KNetwork::KIpAddress@{KNetwork::KIp\-Address}!isUnspecified@{isUnspecified}}
\index{isUnspecified@{isUnspecified}!KNetwork::KIpAddress@{KNetwork::KIp\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KNetwork::KIp\-Address::is\-Unspecified () const\hspace{0.3cm}{\tt  [inline]}}\label{classKNetwork_1_1KIpAddress_a19}


Returns true if this is the IPv4 or IPv6 unspecified address. 



Definition at line 246 of file ksocketaddress.h.\index{KNetwork::KIpAddress@{KNetwork::KIp\-Address}!isLocalhost@{isLocalhost}}
\index{isLocalhost@{isLocalhost}!KNetwork::KIpAddress@{KNetwork::KIp\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KNetwork::KIp\-Address::is\-Localhost () const\hspace{0.3cm}{\tt  [inline]}}\label{classKNetwork_1_1KIpAddress_a20}


Returns true if this is either the IPv4 or the IPv6 localhost address. 



Definition at line 252 of file ksocketaddress.h.\index{KNetwork::KIpAddress@{KNetwork::KIp\-Address}!isLoopback@{isLoopback}}
\index{isLoopback@{isLoopback}!KNetwork::KIpAddress@{KNetwork::KIp\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KNetwork::KIp\-Address::is\-Loopback () const\hspace{0.3cm}{\tt  [inline]}}\label{classKNetwork_1_1KIpAddress_a21}


This is an alias for {\bf is\-Localhost}{\rm (p.\,\pageref{classKNetwork_1_1KIpAddress_a20})}. 



Definition at line 258 of file ksocketaddress.h.\index{KNetwork::KIpAddress@{KNetwork::KIp\-Address}!isClassA@{isClassA}}
\index{isClassA@{isClassA}!KNetwork::KIpAddress@{KNetwork::KIp\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KNetwork::KIp\-Address::is\-Class\-A () const\hspace{0.3cm}{\tt  [inline]}}\label{classKNetwork_1_1KIpAddress_a22}


Returns true if this is an IPv4 class A address, i.e., from 0.0.0.0 to 127.255.255.255. 

This function does not test for v4-mapped addresses. 

Definition at line 267 of file ksocketaddress.h.\index{KNetwork::KIpAddress@{KNetwork::KIp\-Address}!isClassB@{isClassB}}
\index{isClassB@{isClassB}!KNetwork::KIpAddress@{KNetwork::KIp\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KNetwork::KIp\-Address::is\-Class\-B () const\hspace{0.3cm}{\tt  [inline]}}\label{classKNetwork_1_1KIpAddress_a23}


Returns true if this is an IPv4 class B address, i.e., one from 128.0.0.0 to 191.255.255.255. 

This function does not test for v4-mapped addresses. 

Definition at line 276 of file ksocketaddress.h.\index{KNetwork::KIpAddress@{KNetwork::KIp\-Address}!isClassC@{isClassC}}
\index{isClassC@{isClassC}!KNetwork::KIpAddress@{KNetwork::KIp\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KNetwork::KIp\-Address::is\-Class\-C () const\hspace{0.3cm}{\tt  [inline]}}\label{classKNetwork_1_1KIpAddress_a24}


Returns true if this is an IPv4 class C address, i.e., one from 192.0.0.0 to 223.255.255.255. 

This function does not test for v4-mapped addresses. 

Definition at line 285 of file ksocketaddress.h.\index{KNetwork::KIpAddress@{KNetwork::KIp\-Address}!isClassD@{isClassD}}
\index{isClassD@{isClassD}!KNetwork::KIpAddress@{KNetwork::KIp\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KNetwork::KIp\-Address::is\-Class\-D () const\hspace{0.3cm}{\tt  [inline]}}\label{classKNetwork_1_1KIpAddress_a25}


Returns true if this is an IPv4 class D (a.k.a. 

multicast) address.

Note: this function is not the same as {\bf is\-Multicast}{\rm (p.\,\pageref{classKNetwork_1_1KIpAddress_a26})}. is\-Multicast also tests for IPv6 multicast addresses. 

Definition at line 294 of file ksocketaddress.h.\index{KNetwork::KIpAddress@{KNetwork::KIp\-Address}!isMulticast@{isMulticast}}
\index{isMulticast@{isMulticast}!KNetwork::KIpAddress@{KNetwork::KIp\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KNetwork::KIp\-Address::is\-Multicast () const\hspace{0.3cm}{\tt  [inline]}}\label{classKNetwork_1_1KIpAddress_a26}


Returns true if this is a multicast address, be it IPv4 or IPv6. 



Definition at line 300 of file ksocketaddress.h.\index{KNetwork::KIpAddress@{KNetwork::KIp\-Address}!isLinkLocal@{isLinkLocal}}
\index{isLinkLocal@{isLinkLocal}!KNetwork::KIpAddress@{KNetwork::KIp\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KNetwork::KIp\-Address::is\-Link\-Local () const\hspace{0.3cm}{\tt  [inline]}}\label{classKNetwork_1_1KIpAddress_a27}


Returns true if this is an IPv6 link-local address. 



Definition at line 310 of file ksocketaddress.h.\index{KNetwork::KIpAddress@{KNetwork::KIp\-Address}!isSiteLocal@{isSiteLocal}}
\index{isSiteLocal@{isSiteLocal}!KNetwork::KIpAddress@{KNetwork::KIp\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KNetwork::KIp\-Address::is\-Site\-Local () const\hspace{0.3cm}{\tt  [inline]}}\label{classKNetwork_1_1KIpAddress_a28}


Returns true if this is an IPv6 site-local address. 



Definition at line 321 of file ksocketaddress.h.\index{KNetwork::KIpAddress@{KNetwork::KIp\-Address}!isGlobal@{isGlobal}}
\index{isGlobal@{isGlobal}!KNetwork::KIpAddress@{KNetwork::KIp\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KNetwork::KIp\-Address::is\-Global () const\hspace{0.3cm}{\tt  [inline]}}\label{classKNetwork_1_1KIpAddress_a29}


Returns true if this is a global IPv6 address. 



Definition at line 332 of file ksocketaddress.h.\index{KNetwork::KIpAddress@{KNetwork::KIp\-Address}!isV4Mapped@{isV4Mapped}}
\index{isV4Mapped@{isV4Mapped}!KNetwork::KIpAddress@{KNetwork::KIp\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KNetwork::KIp\-Address::is\-V4Mapped () const\hspace{0.3cm}{\tt  [inline]}}\label{classKNetwork_1_1KIpAddress_a30}


Returns true if this is a v4-mapped IPv6 address. 



Definition at line 338 of file ksocketaddress.h.\index{KNetwork::KIpAddress@{KNetwork::KIp\-Address}!isV4Compat@{isV4Compat}}
\index{isV4Compat@{isV4Compat}!KNetwork::KIpAddress@{KNetwork::KIp\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KNetwork::KIp\-Address::is\-V4Compat () const\hspace{0.3cm}{\tt  [inline]}}\label{classKNetwork_1_1KIpAddress_a31}


Returns true if this is a v4-compat IPv6 address. 



Definition at line 350 of file ksocketaddress.h.\index{KNetwork::KIpAddress@{KNetwork::KIp\-Address}!isMulticastNodeLocal@{isMulticastNodeLocal}}
\index{isMulticastNodeLocal@{isMulticastNodeLocal}!KNetwork::KIpAddress@{KNetwork::KIp\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KNetwork::KIp\-Address::is\-Multicast\-Node\-Local () const\hspace{0.3cm}{\tt  [inline]}}\label{classKNetwork_1_1KIpAddress_a32}


Returns true if this is an IPv6 node-local multicast address. 



Definition at line 360 of file ksocketaddress.h.\index{KNetwork::KIpAddress@{KNetwork::KIp\-Address}!isMulticastLinkLocal@{isMulticastLinkLocal}}
\index{isMulticastLinkLocal@{isMulticastLinkLocal}!KNetwork::KIpAddress@{KNetwork::KIp\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KNetwork::KIp\-Address::is\-Multicast\-Link\-Local () const\hspace{0.3cm}{\tt  [inline]}}\label{classKNetwork_1_1KIpAddress_a33}


Returns true if this is an IPv6 link-local multicast address. 



Definition at line 366 of file ksocketaddress.h.\index{KNetwork::KIpAddress@{KNetwork::KIp\-Address}!isMulticastSiteLocal@{isMulticastSiteLocal}}
\index{isMulticastSiteLocal@{isMulticastSiteLocal}!KNetwork::KIpAddress@{KNetwork::KIp\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KNetwork::KIp\-Address::is\-Multicast\-Site\-Local () const\hspace{0.3cm}{\tt  [inline]}}\label{classKNetwork_1_1KIpAddress_a34}


Returns true if this is an IPv6 site-local multicast address. 



Definition at line 372 of file ksocketaddress.h.\index{KNetwork::KIpAddress@{KNetwork::KIp\-Address}!isMulticastOrgLocal@{isMulticastOrgLocal}}
\index{isMulticastOrgLocal@{isMulticastOrgLocal}!KNetwork::KIpAddress@{KNetwork::KIp\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KNetwork::KIp\-Address::is\-Multicast\-Org\-Local () const\hspace{0.3cm}{\tt  [inline]}}\label{classKNetwork_1_1KIpAddress_a35}


Returns true if this is an IPv6 organisational-local multicast address. 



Definition at line 378 of file ksocketaddress.h.\index{KNetwork::KIpAddress@{KNetwork::KIp\-Address}!isMulticastGlobal@{isMulticastGlobal}}
\index{isMulticastGlobal@{isMulticastGlobal}!KNetwork::KIpAddress@{KNetwork::KIp\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KNetwork::KIp\-Address::is\-Multicast\-Global () const\hspace{0.3cm}{\tt  [inline]}}\label{classKNetwork_1_1KIpAddress_a36}


Returns true if this is an IPv6 global multicast address. 



Definition at line 384 of file ksocketaddress.h.

\subsection{Member Data Documentation}
\index{KNetwork::KIpAddress@{KNetwork::KIp\-Address}!localhostV4@{localhostV4}}
\index{localhostV4@{localhostV4}!KNetwork::KIpAddress@{KNetwork::KIp\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf KIp\-Address} {\bf KIp\-Address::localhost\-V4}\hspace{0.3cm}{\tt  [static]}}\label{classKNetwork_1_1KIpAddress_s0}


localhost in IPv4 (127.0.0.1) 

\index{KNetwork::KIpAddress@{KNetwork::KIp\-Address}!anyhostV4@{anyhostV4}}
\index{anyhostV4@{anyhostV4}!KNetwork::KIpAddress@{KNetwork::KIp\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf KIp\-Address} {\bf KIp\-Address::anyhost\-V4}\hspace{0.3cm}{\tt  [static]}}\label{classKNetwork_1_1KIpAddress_s1}


the any host or undefined address in IPv4 (0.0.0.0) 

\index{KNetwork::KIpAddress@{KNetwork::KIp\-Address}!localhostV6@{localhostV6}}
\index{localhostV6@{localhostV6}!KNetwork::KIpAddress@{KNetwork::KIp\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf KIp\-Address} {\bf KIp\-Address::localhost\-V6}\hspace{0.3cm}{\tt  [static]}}\label{classKNetwork_1_1KIpAddress_s2}


localhost in IPv6 (::1) 

\index{KNetwork::KIpAddress@{KNetwork::KIp\-Address}!anyhostV6@{anyhostV6}}
\index{anyhostV6@{anyhostV6}!KNetwork::KIpAddress@{KNetwork::KIp\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf KIp\-Address} {\bf KIp\-Address::anyhost\-V6}\hspace{0.3cm}{\tt  [static]}}\label{classKNetwork_1_1KIpAddress_s3}


the any host or undefined address in IPv6 (::) 



The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
ksocketaddress.h\item 
ksocketaddress.cpp\end{CompactItemize}
