OW_NAMESPACE::NwIface Class Reference

#include <OW_NwIface.hpp>

Collaboration diagram for OW_NAMESPACE::NwIface:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 NwIface ()
 
Exceptions:
SocketException 

String getName ()
unsigned long getIPAddress ()
String getIPAddressString ()
unsigned long getBroadcastAddress ()
String getBroadcastAddressString ()
unsigned long getNetmask ()
String getNetmaskString ()
bool sameNetwork (unsigned long addr)
bool sameNetwork (const String &straddr)

Static Public Member Functions

static unsigned long stringToAddress (const String &straddr)

Private Member Functions

void getInterfaceName (SocketHandle_t sockfd)
 
Exceptions:
SocketException 


Private Attributes

unsigned long m_addr
unsigned long m_bcastAddr
unsigned long m_netmask
String m_name

Detailed Description

Definition at line 57 of file OW_NwIface.hpp.


Constructor & Destructor Documentation

OW_NAMESPACE::NwIface::NwIface  ) 
 

Exceptions:
SocketException 

Definition at line 106 of file OW_NwIface.cpp.

References OW_NAMESPACE::String::c_str(), OW_NAMESPACE::FileSystem::close(), getInterfaceName(), m_addr, m_bcastAddr, m_name, m_netmask, OW_THROW, and s.


Member Function Documentation

unsigned long OW_NAMESPACE::NwIface::getBroadcastAddress  ) 
 

Definition at line 175 of file OW_NwIface.cpp.

References m_bcastAddr.

String OW_NAMESPACE::NwIface::getBroadcastAddressString  ) 
 

Definition at line 181 of file OW_NwIface.cpp.

References OW_NAMESPACE::SocketUtils::inetAddrToString(), and m_bcastAddr.

void OW_NAMESPACE::NwIface::getInterfaceName SocketHandle_t  sockfd  )  [private]
 

Exceptions:
SocketException 

Definition at line 225 of file OW_NwIface.cpp.

Referenced by NwIface().

unsigned long OW_NAMESPACE::NwIface::getIPAddress  ) 
 

Definition at line 163 of file OW_NwIface.cpp.

References m_addr.

String OW_NAMESPACE::NwIface::getIPAddressString  ) 
 

Definition at line 169 of file OW_NwIface.cpp.

References OW_NAMESPACE::SocketUtils::inetAddrToString(), and m_addr.

String OW_NAMESPACE::NwIface::getName  ) 
 

Definition at line 157 of file OW_NwIface.cpp.

References m_name.

unsigned long OW_NAMESPACE::NwIface::getNetmask  ) 
 

Definition at line 195 of file OW_NwIface.cpp.

References m_netmask.

String OW_NAMESPACE::NwIface::getNetmaskString  ) 
 

Definition at line 201 of file OW_NwIface.cpp.

References OW_NAMESPACE::SocketUtils::inetAddrToString(), and m_netmask.

bool OW_NAMESPACE::NwIface::sameNetwork const String straddr  ) 
 

Definition at line 213 of file OW_NwIface.cpp.

References sameNetwork(), and stringToAddress().

bool OW_NAMESPACE::NwIface::sameNetwork unsigned long  addr  ) 
 

Definition at line 207 of file OW_NwIface.cpp.

References m_addr, and m_netmask.

Referenced by sameNetwork().

unsigned long OW_NAMESPACE::NwIface::stringToAddress const String straddr  )  [static]
 

Definition at line 219 of file OW_NwIface.cpp.

References OW_NAMESPACE::String::c_str().

Referenced by sameNetwork().


Member Data Documentation

unsigned long OW_NAMESPACE::NwIface::m_addr [private]
 

Definition at line 80 of file OW_NwIface.hpp.

Referenced by getIPAddress(), getIPAddressString(), NwIface(), and sameNetwork().

unsigned long OW_NAMESPACE::NwIface::m_bcastAddr [private]
 

Definition at line 81 of file OW_NwIface.hpp.

Referenced by getBroadcastAddress(), getBroadcastAddressString(), and NwIface().

String OW_NAMESPACE::NwIface::m_name [private]
 

Definition at line 84 of file OW_NwIface.hpp.

Referenced by getName(), and NwIface().

unsigned long OW_NAMESPACE::NwIface::m_netmask [private]
 

Definition at line 82 of file OW_NwIface.hpp.

Referenced by getNetmask(), getNetmaskString(), NwIface(), and sameNetwork().


The documentation for this class was generated from the following files:
Generated on Thu Feb 9 09:14:51 2006 for openwbem by  doxygen 1.4.6