blocxx
|
#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 60 of file NwIface.hpp.
BLOCXX_NAMESPACE::NwIface::NwIface | ( | ) |
SocketException |
Definition at line 109 of file NwIface.cpp.
References BLOCXX_THROW, BLOCXX_NAMESPACE::String::c_str(), getInterfaceName(), m_addr, m_bcastAddr, m_name, and m_netmask.
unsigned long BLOCXX_NAMESPACE::NwIface::getBroadcastAddress | ( | ) |
Definition at line 178 of file NwIface.cpp.
References m_bcastAddr.
String BLOCXX_NAMESPACE::NwIface::getBroadcastAddressString | ( | ) |
Definition at line 184 of file NwIface.cpp.
References BLOCXX_NAMESPACE::SocketUtils::inetAddrToString(), and m_bcastAddr.
|
private |
SocketException |
Definition at line 228 of file NwIface.cpp.
References BLOCXX_THROW.
Referenced by NwIface().
unsigned long BLOCXX_NAMESPACE::NwIface::getIPAddress | ( | ) |
Definition at line 166 of file NwIface.cpp.
References m_addr.
String BLOCXX_NAMESPACE::NwIface::getIPAddressString | ( | ) |
Definition at line 172 of file NwIface.cpp.
References BLOCXX_NAMESPACE::SocketUtils::inetAddrToString(), and m_addr.
String BLOCXX_NAMESPACE::NwIface::getName | ( | ) |
Definition at line 160 of file NwIface.cpp.
References m_name.
unsigned long BLOCXX_NAMESPACE::NwIface::getNetmask | ( | ) |
Definition at line 198 of file NwIface.cpp.
References m_netmask.
String BLOCXX_NAMESPACE::NwIface::getNetmaskString | ( | ) |
Definition at line 204 of file NwIface.cpp.
References BLOCXX_NAMESPACE::SocketUtils::inetAddrToString(), and m_netmask.
bool BLOCXX_NAMESPACE::NwIface::sameNetwork | ( | const String & | straddr | ) |
Definition at line 216 of file NwIface.cpp.
References sameNetwork(), and stringToAddress().
bool BLOCXX_NAMESPACE::NwIface::sameNetwork | ( | unsigned long | addr | ) |
Definition at line 210 of file NwIface.cpp.
References m_addr, and m_netmask.
Referenced by sameNetwork().
|
static |
Definition at line 222 of file NwIface.cpp.
References BLOCXX_NAMESPACE::String::c_str().
Referenced by sameNetwork().
|
private |
Definition at line 83 of file NwIface.hpp.
Referenced by getIPAddress(), getIPAddressString(), NwIface(), and sameNetwork().
|
private |
Definition at line 84 of file NwIface.hpp.
Referenced by getBroadcastAddress(), getBroadcastAddressString(), and NwIface().
|
private |
Definition at line 87 of file NwIface.hpp.
|
private |
Definition at line 85 of file NwIface.hpp.
Referenced by getNetmask(), getNetmaskString(), NwIface(), and sameNetwork().