Sophie

Sophie

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

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

\section{ost::Network\-Device\-Info Class Reference}
\label{classost_1_1_network_device_info}\index{ost::NetworkDeviceInfo@{ost::NetworkDeviceInfo}}
Network device information class.  


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

\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Network\-Device\-Info} (const {\bf Network\-Device\-Info} \&ndi)
\item 
{\bf $\sim$Network\-Device\-Info} ()
\item 
const {\bf String} \& {\bf name} () const 
\begin{CompactList}\small\item\em Returns the Name of the network device. \item\end{CompactList}\item 
const Inet\-Host\-Address \& {\bf address} () const 
\begin{CompactList}\small\item\em Returns the Address of the network device. \item\end{CompactList}\item 
const Broadcast\-Address \& {\bf broadcast} () const 
\begin{CompactList}\small\item\em Returns the Broadcast address of the network device. \item\end{CompactList}\item 
const Inet\-Mask\-Address \& {\bf netmask} () const 
\begin{CompactList}\small\item\em Returns the Netmask of the network device. \item\end{CompactList}\item 
const int {\bf mtu} () const 
\begin{CompactList}\small\item\em Returns the MTU. \item\end{CompactList}\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
{\bf Network\-Device\-Info} (const {\bf String} \&name, const Inet\-Host\-Address \&addr, const Broadcast\-Address \&broadcast, const Inet\-Mask\-Address \&netmask, int mtu)
\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
\_\-\_\-EXPORT bool {\bf enum\-Network\-Devices} (std::vector$<$ {\bf Network\-Device\-Info} $>$ \&devs)
\begin{CompactList}\small\item\em Enumerate all available network devices. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Network device information class. 

This class is used to hold various informations about a TCP/IP network device. Which can be obtained by a call to {\bf enum\-Network\-Devices()}{\rm (p.\,\pageref{classost_1_1_network_device_info_7749bed371b55defff390f25755bf516})} \begin{Desc}
\item[Author:]Christian Prochnow $<${\tt cproch@seculogix.de}$>$ \end{Desc}




\subsection{Constructor \& Destructor Documentation}
\index{ost::NetworkDeviceInfo@{ost::Network\-Device\-Info}!NetworkDeviceInfo@{NetworkDeviceInfo}}
\index{NetworkDeviceInfo@{NetworkDeviceInfo}!ost::NetworkDeviceInfo@{ost::Network\-Device\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}ost::Network\-Device\-Info::Network\-Device\-Info (const {\bf String} \& {\em name}, const Inet\-Host\-Address \& {\em addr}, const Broadcast\-Address \& {\em broadcast}, const Inet\-Mask\-Address \& {\em netmask}, int {\em mtu})\hspace{0.3cm}{\tt  [protected]}}\label{classost_1_1_network_device_info_d2f7e935240f8a6423cf1026a1452b54}


\index{ost::NetworkDeviceInfo@{ost::Network\-Device\-Info}!NetworkDeviceInfo@{NetworkDeviceInfo}}
\index{NetworkDeviceInfo@{NetworkDeviceInfo}!ost::NetworkDeviceInfo@{ost::Network\-Device\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}ost::Network\-Device\-Info::Network\-Device\-Info (const {\bf Network\-Device\-Info} \& {\em ndi})}\label{classost_1_1_network_device_info_424fc403bb41b4928722f0c72a80d281}


\index{ost::NetworkDeviceInfo@{ost::Network\-Device\-Info}!~NetworkDeviceInfo@{$\sim$NetworkDeviceInfo}}
\index{~NetworkDeviceInfo@{$\sim$NetworkDeviceInfo}!ost::NetworkDeviceInfo@{ost::Network\-Device\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}ost::Network\-Device\-Info::$\sim$Network\-Device\-Info ()}\label{classost_1_1_network_device_info_cd2200e08c6e5888618b45ea353b78cb}




\subsection{Member Function Documentation}
\index{ost::NetworkDeviceInfo@{ost::Network\-Device\-Info}!address@{address}}
\index{address@{address}!ost::NetworkDeviceInfo@{ost::Network\-Device\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const Inet\-Host\-Address\& ost::Network\-Device\-Info::address () const\hspace{0.3cm}{\tt  [inline]}}\label{classost_1_1_network_device_info_200f9170f1bf80a7106523b4abf71876}


Returns the Address of the network device. 

\index{ost::NetworkDeviceInfo@{ost::Network\-Device\-Info}!broadcast@{broadcast}}
\index{broadcast@{broadcast}!ost::NetworkDeviceInfo@{ost::Network\-Device\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const Broadcast\-Address\& ost::Network\-Device\-Info::broadcast () const\hspace{0.3cm}{\tt  [inline]}}\label{classost_1_1_network_device_info_b3354ccdb8a59a2c710873e2a2ff293f}


Returns the Broadcast address of the network device. 

\index{ost::NetworkDeviceInfo@{ost::Network\-Device\-Info}!mtu@{mtu}}
\index{mtu@{mtu}!ost::NetworkDeviceInfo@{ost::Network\-Device\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const int ost::Network\-Device\-Info::mtu () const\hspace{0.3cm}{\tt  [inline]}}\label{classost_1_1_network_device_info_0f8bf5ad68481ac9303aa5442f7869e2}


Returns the MTU. 

\index{ost::NetworkDeviceInfo@{ost::Network\-Device\-Info}!name@{name}}
\index{name@{name}!ost::NetworkDeviceInfo@{ost::Network\-Device\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf String}\& ost::Network\-Device\-Info::name () const\hspace{0.3cm}{\tt  [inline]}}\label{classost_1_1_network_device_info_443036b6207ef19ded0813d0b7aeefbd}


Returns the Name of the network device. 

\index{ost::NetworkDeviceInfo@{ost::Network\-Device\-Info}!netmask@{netmask}}
\index{netmask@{netmask}!ost::NetworkDeviceInfo@{ost::Network\-Device\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const Inet\-Mask\-Address\& ost::Network\-Device\-Info::netmask () const\hspace{0.3cm}{\tt  [inline]}}\label{classost_1_1_network_device_info_efbab307633abbfe4335e7d5b3dc690c}


Returns the Netmask of the network device. 



\subsection{Friends And Related Function Documentation}
\index{ost::NetworkDeviceInfo@{ost::Network\-Device\-Info}!enumNetworkDevices@{enumNetworkDevices}}
\index{enumNetworkDevices@{enumNetworkDevices}!ost::NetworkDeviceInfo@{ost::Network\-Device\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\_\-\_\-EXPORT bool enum\-Network\-Devices (std::vector$<$ {\bf Network\-Device\-Info} $>$ \& {\em devs})\hspace{0.3cm}{\tt  [friend]}}\label{classost_1_1_network_device_info_7749bed371b55defff390f25755bf516}


Enumerate all available network devices. 



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