\section{KNetwork::KUnix\-Socket\-Address Class Reference}
\label{classKNetwork_1_1KUnixSocketAddress}\index{KNetwork::KUnixSocketAddress@{KNetwork::KUnixSocketAddress}}
A Unix (local) socket address.  


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

Inheritance diagram for KNetwork::KUnix\-Socket\-Address:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=97pt]{classKNetwork_1_1KUnixSocketAddress__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KNetwork::KUnix\-Socket\-Address:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=97pt]{classKNetwork_1_1KUnixSocketAddress__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KUnix\-Socket\-Address} ()
\item 
{\bf KUnix\-Socket\-Address} (const sockaddr $\ast$sa, Q\_\-UINT16 len)
\item 
{\bf KUnix\-Socket\-Address} (const {\bf KUnix\-Socket\-Address} \&other)
\item 
{\bf KUnix\-Socket\-Address} (const {\bf QString} \&pathname)
\item 
virtual {\bf $\sim$KUnix\-Socket\-Address} ()
\item 
{\bf KUnix\-Socket\-Address} \& {\bf operator=} (const {\bf KUnix\-Socket\-Address} \&other)
\item 
{\bf operator const sockaddr\_\-un $\ast$} () const 
\item 
{\bf QString} {\bf pathname} () const 
\item 
{\bf KUnix\-Socket\-Address} \& {\bf set\-Pathname} (const {\bf QString} \&path)
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
{\bf KUnix\-Socket\-Address} (KSocket\-Address\-Data $\ast$d)\label{classKNetwork_1_1KUnixSocketAddress_b0}

\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
class {\bf KSocket\-Address}\label{classKNetwork_1_1KUnixSocketAddress_n0}

\end{CompactItemize}


\subsection{Detailed Description}
A Unix (local) socket address. 

This is a Unix socket address.

Note that this class uses QStrings to represent filenames, which means the proper encoding is used to translate into valid filesystem file names.

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




Definition at line 830 of file ksocketaddress.h.

\subsection{Constructor \& Destructor Documentation}
\index{KNetwork::KUnixSocketAddress@{KNetwork::KUnix\-Socket\-Address}!KUnixSocketAddress@{KUnixSocketAddress}}
\index{KUnixSocketAddress@{KUnixSocketAddress}!KNetwork::KUnixSocketAddress@{KNetwork::KUnix\-Socket\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KUnix\-Socket\-Address::KUnix\-Socket\-Address ()}\label{classKNetwork_1_1KUnixSocketAddress_a0}


Default constructor. 

Creates an empty object. 

Definition at line 895 of file ksocketaddress.cpp.\index{KNetwork::KUnixSocketAddress@{KNetwork::KUnix\-Socket\-Address}!KUnixSocketAddress@{KUnixSocketAddress}}
\index{KUnixSocketAddress@{KUnixSocketAddress}!KNetwork::KUnixSocketAddress@{KNetwork::KUnix\-Socket\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KUnix\-Socket\-Address::KUnix\-Socket\-Address (const sockaddr $\ast$ {\em sa}, Q\_\-UINT16 {\em len})}\label{classKNetwork_1_1KUnixSocketAddress_a1}


Creates this object with the given raw data. 

If the sockaddr structure does not contain a Local namespace (Unix) socket, this object will be created empty.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em sa}]the socket address structure \item[{\em len}]the structure's length \end{description}
\end{Desc}


Definition at line 899 of file ksocketaddress.cpp.\index{KNetwork::KUnixSocketAddress@{KNetwork::KUnix\-Socket\-Address}!KUnixSocketAddress@{KUnixSocketAddress}}
\index{KUnixSocketAddress@{KUnixSocketAddress}!KNetwork::KUnixSocketAddress@{KNetwork::KUnix\-Socket\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KUnix\-Socket\-Address::KUnix\-Socket\-Address (const {\bf KUnix\-Socket\-Address} \& {\em other})}\label{classKNetwork_1_1KUnixSocketAddress_a2}


Copy constructor. 

Creates a copy of the other object, sharing the data explicitly.

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


Definition at line 906 of file ksocketaddress.cpp.\index{KNetwork::KUnixSocketAddress@{KNetwork::KUnix\-Socket\-Address}!KUnixSocketAddress@{KUnixSocketAddress}}
\index{KUnixSocketAddress@{KUnixSocketAddress}!KNetwork::KUnixSocketAddress@{KNetwork::KUnix\-Socket\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KUnix\-Socket\-Address::KUnix\-Socket\-Address (const {\bf QString} \& {\em pathname})}\label{classKNetwork_1_1KUnixSocketAddress_a3}


Constructs an object from the given pathname. 



Definition at line 911 of file ksocketaddress.cpp.

References pathname(), and set\-Pathname().\index{KNetwork::KUnixSocketAddress@{KNetwork::KUnix\-Socket\-Address}!~KUnixSocketAddress@{$\sim$KUnixSocketAddress}}
\index{~KUnixSocketAddress@{$\sim$KUnixSocketAddress}!KNetwork::KUnixSocketAddress@{KNetwork::KUnix\-Socket\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KUnix\-Socket\-Address::$\sim${\bf KUnix\-Socket\-Address} ()\hspace{0.3cm}{\tt  [virtual]}}\label{classKNetwork_1_1KUnixSocketAddress_a4}


Destructor. 



Definition at line 921 of file ksocketaddress.cpp.

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


Copy operator. 

Copies the contents of the other object into this one. Data is explicitly shared.

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


Definition at line 925 of file ksocketaddress.cpp.\index{KNetwork::KUnixSocketAddress@{KNetwork::KUnix\-Socket\-Address}!operator const sockaddr_un *@{operator const sockaddr\_\-un $\ast$}}
\index{operator const sockaddr_un *@{operator const sockaddr\_\-un $\ast$}!KNetwork::KUnixSocketAddress@{KNetwork::KUnix\-Socket\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KNetwork::KUnix\-Socket\-Address::operator const sockaddr\_\-un $\ast$ () const\hspace{0.3cm}{\tt  [inline]}}\label{classKNetwork_1_1KUnixSocketAddress_a6}


Cast operator to sockaddr\_\-un. 



Definition at line 878 of file ksocketaddress.h.

References KSocket\-Address::address().\index{KNetwork::KUnixSocketAddress@{KNetwork::KUnix\-Socket\-Address}!pathname@{pathname}}
\index{pathname@{pathname}!KNetwork::KUnixSocketAddress@{KNetwork::KUnix\-Socket\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KUnix\-Socket\-Address::pathname () const}\label{classKNetwork_1_1KUnixSocketAddress_a7}


Returns the pathname associated with this object. 

Will return QString::null if this object is empty. 

Definition at line 931 of file ksocketaddress.cpp.

References QFile::decode\-Name().

Referenced by KUnix\-Socket\-Address().\index{KNetwork::KUnixSocketAddress@{KNetwork::KUnix\-Socket\-Address}!setPathname@{setPathname}}
\index{setPathname@{setPathname}!KNetwork::KUnixSocketAddress@{KNetwork::KUnix\-Socket\-Address}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KUnix\-Socket\-Address} \& KUnix\-Socket\-Address::set\-Pathname (const {\bf QString} \& {\em path})}\label{classKNetwork_1_1KUnixSocketAddress_a8}


Sets the pathname for the object. 

\begin{Desc}
\item[Returns:]a reference to itself \end{Desc}


Definition at line 938 of file ksocketaddress.cpp.

Referenced by KUnix\-Socket\-Address().

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