#include <NwIface.hpp>
Public Member Functions | ||||
| NwIface () | ||||
| ||||
| 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) | |||
| ||||
Private Attributes | ||||
| unsigned long | m_addr | |||
| unsigned long | m_bcastAddr | |||
| unsigned long | m_netmask | |||
| String | m_name | |||
Definition at line 59 of file NwIface.hpp.
| BLOCXX_NAMESPACE::NwIface::NwIface | ( | ) |
| SocketException |
Definition at line 108 of file NwIface.cpp.
References BLOCXX_THROW, BLOCXX_NAMESPACE::String::c_str(), BLOCXX_NAMESPACE::FileSystem::close(), getInterfaceName(), m_addr, m_bcastAddr, m_name, and m_netmask.
| String BLOCXX_NAMESPACE::NwIface::getName | ( | ) |
| unsigned long BLOCXX_NAMESPACE::NwIface::getIPAddress | ( | ) |
| String BLOCXX_NAMESPACE::NwIface::getIPAddressString | ( | ) |
Definition at line 171 of file NwIface.cpp.
References BLOCXX_NAMESPACE::SocketUtils::inetAddrToString(), and m_addr.
| unsigned long BLOCXX_NAMESPACE::NwIface::getBroadcastAddress | ( | ) |
| String BLOCXX_NAMESPACE::NwIface::getBroadcastAddressString | ( | ) |
Definition at line 183 of file NwIface.cpp.
References BLOCXX_NAMESPACE::SocketUtils::inetAddrToString(), and m_bcastAddr.
| unsigned long BLOCXX_NAMESPACE::NwIface::getNetmask | ( | ) |
| String BLOCXX_NAMESPACE::NwIface::getNetmaskString | ( | ) |
Definition at line 203 of file NwIface.cpp.
References BLOCXX_NAMESPACE::SocketUtils::inetAddrToString(), and m_netmask.
| bool BLOCXX_NAMESPACE::NwIface::sameNetwork | ( | unsigned long | addr | ) |
Definition at line 209 of file NwIface.cpp.
References m_addr, and m_netmask.
Referenced by sameNetwork().
| bool BLOCXX_NAMESPACE::NwIface::sameNetwork | ( | const String & | straddr | ) |
| unsigned long BLOCXX_NAMESPACE::NwIface::stringToAddress | ( | const String & | straddr | ) | [static] |
Definition at line 221 of file NwIface.cpp.
References BLOCXX_NAMESPACE::String::c_str().
Referenced by sameNetwork().
| void BLOCXX_NAMESPACE::NwIface::getInterfaceName | ( | SocketHandle_t | sockfd | ) | [private] |
| SocketException |
Definition at line 227 of file NwIface.cpp.
References m_name.
Referenced by NwIface().
unsigned long BLOCXX_NAMESPACE::NwIface::m_addr [private] |
Definition at line 82 of file NwIface.hpp.
Referenced by getIPAddress(), getIPAddressString(), NwIface(), and sameNetwork().
unsigned long BLOCXX_NAMESPACE::NwIface::m_bcastAddr [private] |
Definition at line 83 of file NwIface.hpp.
Referenced by getBroadcastAddress(), getBroadcastAddressString(), and NwIface().
unsigned long BLOCXX_NAMESPACE::NwIface::m_netmask [private] |
Definition at line 84 of file NwIface.hpp.
Referenced by getNetmask(), getNetmaskString(), NwIface(), and sameNetwork().
String BLOCXX_NAMESPACE::NwIface::m_name [private] |
Definition at line 86 of file NwIface.hpp.
Referenced by getInterfaceName(), getName(), and NwIface().
1.5.3