Sophie

Sophie

distrib > Mandriva > 2007.0 > i586 > by-pkgid > ad1ba1135a9c9eeffc2e538163e00373 > files > 668

libCommonC++2_1.4-devel-1.4.1-1mdv2007.0.i586.rpm

\section{ost::IPV4Host Class Reference}
\label{classost_1_1_i_p_v4_host}\index{ost::IPV4Host@{ost::IPV4Host}}
This object is used to hold the actual and valid internet address of a specific host machine that will be accessed through a socket.Address of a specific Internet host machine.  


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

Inheritance diagram for ost::IPV4Host::\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2cm]{classost_1_1_i_p_v4_host}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf IPV4Host} (const char $\ast$host=NULL)
\begin{CompactList}\small\item\em Create a new host address for a specific internet host. \item\end{CompactList}\item 
{\bf IPV4Host} (struct in\_\-addr addr)
\begin{CompactList}\small\item\em Convert a system socket binary address such as may be returned through the accept() call or getsockpeer() into an internet host address object. \item\end{CompactList}\item 
{\bf IPV4Address} \& {\bf operator=} (unsigned long addr)
\begin{CompactList}\small\item\em Allows assignment from the return of functions like inet\_\-addr() or htonl(). \item\end{CompactList}\item 
{\bf IPV4Host} \& {\bf operator \&=} (const {\bf IPV4Mask} \&mask)
\begin{CompactList}\small\item\em Mask the internet host address object with a network mask address. \item\end{CompactList}\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
class \_\-\_\-EXPORT {\bf IPV4Mask}
\item 
\_\-\_\-EXPORT {\bf IPV4Host} {\bf operator \&} (const {\bf IPV4Host} \&addr, const {\bf IPV4Mask} \&mask)
\end{CompactItemize}


\subsection{Detailed Description}
This object is used to hold the actual and valid internet address of a specific host machine that will be accessed through a socket.Address of a specific Internet host machine. 

\begin{Desc}
\item[Author:]David Sugar $<${\tt dyfet@ostel.com}$>$ \end{Desc}




\subsection{Constructor \& Destructor Documentation}
\index{ost::IPV4Host@{ost::IPV4Host}!IPV4Host@{IPV4Host}}
\index{IPV4Host@{IPV4Host}!ost::IPV4Host@{ost::IPV4Host}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}ost::IPV4Host::IPV4Host (const char $\ast$ {\em host} = {\tt NULL})}\label{classost_1_1_i_p_v4_host_7a9d8927679189163fc12c41e8a75b2f}


Create a new host address for a specific internet host. 

The internet host can be specified in a null terminated ASCII string and include either the physical host address or the DNS name of a host machine. Hence, an {\bf IPV4Host}{\rm (p.\,\pageref{classost_1_1_i_p_v4_host})} (\char`\"{}www.voxilla.org\char`\"{}) can be directly declaired in this manner.

Defaults to the IP address that represents the interface matching \char`\"{}gethostname()\char`\"{}.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em host}]dns or physical address of an Internet host. \end{description}
\end{Desc}
\index{ost::IPV4Host@{ost::IPV4Host}!IPV4Host@{IPV4Host}}
\index{IPV4Host@{IPV4Host}!ost::IPV4Host@{ost::IPV4Host}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}ost::IPV4Host::IPV4Host (struct in\_\-addr {\em addr})}\label{classost_1_1_i_p_v4_host_63fc8c49ec06664ddc3215139c658f6d}


Convert a system socket binary address such as may be returned through the accept() call or getsockpeer() into an internet host address object. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em addr}]binary address of internet host. \end{description}
\end{Desc}


\subsection{Member Function Documentation}
\index{ost::IPV4Host@{ost::IPV4Host}!operator &=@{operator \&=}}
\index{operator &=@{operator \&=}!ost::IPV4Host@{ost::IPV4Host}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf IPV4Host}\& ost::IPV4Host::operator \&= (const {\bf IPV4Mask} \& {\em mask})}\label{classost_1_1_i_p_v4_host_72530659c249229e121215277a7b4b7a}


Mask the internet host address object with a network mask address. 

This is commonly used to coerce an address by subnet. \index{ost::IPV4Host@{ost::IPV4Host}!operator=@{operator=}}
\index{operator=@{operator=}!ost::IPV4Host@{ost::IPV4Host}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf IPV4Address}\& ost::IPV4Host::operator= (unsigned long {\em addr})\hspace{0.3cm}{\tt  [inline]}}\label{classost_1_1_i_p_v4_host_28be54aa5dd6c5ed9feeeb6c76ab0b27}


Allows assignment from the return of functions like inet\_\-addr() or htonl(). 



Reimplemented from {\bf ost::IPV4Address} {\rm (p.\,\pageref{classost_1_1_i_p_v4_address_c05d9c4599ad313dec545a9e89e7e2d5})}.

\subsection{Friends And Related Function Documentation}
\index{ost::IPV4Host@{ost::IPV4Host}!IPV4Mask@{IPV4Mask}}
\index{IPV4Mask@{IPV4Mask}!ost::IPV4Host@{ost::IPV4Host}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}friend class \_\-\_\-EXPORT {\bf IPV4Mask}\hspace{0.3cm}{\tt  [friend]}}\label{classost_1_1_i_p_v4_host_ee7ea6b9d5d5f4bf3de8db73fa8e1f94}


\index{ost::IPV4Host@{ost::IPV4Host}!operator &@{operator \&}}
\index{operator &@{operator \&}!ost::IPV4Host@{ost::IPV4Host}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\_\-\_\-EXPORT {\bf IPV4Host} operator \& (const {\bf IPV4Host} \& {\em addr}, const {\bf IPV4Mask} \& {\em mask})\hspace{0.3cm}{\tt  [friend]}}\label{classost_1_1_i_p_v4_host_400c689d4f8484e7b26ad9c9fe865c7f}




The documentation for this class was generated from the following file:\begin{CompactItemize}
\item 
{\bf address.h}\end{CompactItemize}