blocxx
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
BLOCXX_NAMESPACE::NwIface Class Reference

#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
 

Detailed Description

Definition at line 60 of file NwIface.hpp.

Constructor & Destructor Documentation

◆ NwIface()

BLOCXX_NAMESPACE::NwIface::NwIface ( )
Exceptions
SocketException

Definition at line 139 of file NwIface.cpp.

Member Function Documentation

◆ getBroadcastAddress()

unsigned long BLOCXX_NAMESPACE::NwIface::getBroadcastAddress ( )

Definition at line 208 of file NwIface.cpp.

◆ getBroadcastAddressString()

String BLOCXX_NAMESPACE::NwIface::getBroadcastAddressString ( )

Definition at line 214 of file NwIface.cpp.

◆ getInterfaceName()

void BLOCXX_NAMESPACE::NwIface::getInterfaceName ( SocketHandle_t  sockfd)
private
Exceptions
SocketException

Definition at line 258 of file NwIface.cpp.

◆ getIPAddress()

unsigned long BLOCXX_NAMESPACE::NwIface::getIPAddress ( )

Definition at line 196 of file NwIface.cpp.

◆ getIPAddressString()

String BLOCXX_NAMESPACE::NwIface::getIPAddressString ( )

Definition at line 202 of file NwIface.cpp.

◆ getName()

String BLOCXX_NAMESPACE::NwIface::getName ( )

Definition at line 190 of file NwIface.cpp.

References m_netmask.

◆ getNetmask()

unsigned long BLOCXX_NAMESPACE::NwIface::getNetmask ( )

Definition at line 228 of file NwIface.cpp.

◆ getNetmaskString()

String BLOCXX_NAMESPACE::NwIface::getNetmaskString ( )

Definition at line 234 of file NwIface.cpp.

◆ sameNetwork() [1/2]

bool BLOCXX_NAMESPACE::NwIface::sameNetwork ( const String straddr)

Definition at line 246 of file NwIface.cpp.

◆ sameNetwork() [2/2]

bool BLOCXX_NAMESPACE::NwIface::sameNetwork ( unsigned long  addr)

Definition at line 240 of file NwIface.cpp.

◆ stringToAddress()

unsigned long BLOCXX_NAMESPACE::NwIface::stringToAddress ( const String straddr)
static

Definition at line 252 of file NwIface.cpp.

Member Data Documentation

◆ m_addr

unsigned long BLOCXX_NAMESPACE::NwIface::m_addr
private

Definition at line 83 of file NwIface.hpp.

◆ m_bcastAddr

unsigned long BLOCXX_NAMESPACE::NwIface::m_bcastAddr
private

Definition at line 84 of file NwIface.hpp.

◆ m_name

String BLOCXX_NAMESPACE::NwIface::m_name
private

Definition at line 87 of file NwIface.hpp.

◆ m_netmask

unsigned long BLOCXX_NAMESPACE::NwIface::m_netmask
private

Definition at line 85 of file NwIface.hpp.

Referenced by getName().


The documentation for this class was generated from the following files: