An IPv4 address.  
More...
#include <ipv4address.h>
List of all members.
| 
Public Member Functions | 
|  | IPv4Address (uint8_t ip[4]) | 
|  | Create an instance based on the four bytes in ip.
 | 
|  | IPv4Address (uint8_t ip0, uint8_t ip1, uint8_t ip2, uint8_t ip3) | 
|  | Create an instance based on the bytes ip0,ip1,ip2andip3.
 | 
|  | IPv4Address (uint32_t ip=0, bool hostByteOrder=true) | 
|  | Create an instance based on the 32-bit number ip, using thehostByteOrderflag to indicate its byte order.
 | 
| uint32_t | getAddress () const | 
|  | Returns the 32-bit IPv4 address in host byte order. 
 | 
| uint32_t | getAddressNBO () const | 
|  | Returns the 32-bit IPv4 address in network byte order. 
 | 
| bool | setAddress (const std::string &addressString) | 
|  | Tries to set the address according to the string addressString.
 | 
Detailed Description
Constructor & Destructor Documentation
      
        
          | nut::IPv4Address::IPv4Address | ( | uint8_t | ip[4] | ) |  [inline] | 
      
 
 
      
        
          | nut::IPv4Address::IPv4Address | ( | uint8_t | ip0, | 
        
          |  |  | uint8_t | ip1, | 
        
          |  |  | uint8_t | ip2, | 
        
          |  |  | uint8_t | ip3 | 
        
          |  | ) |  |  [inline] | 
      
 
 
Member Function Documentation
      
        
          | uint32_t nut::IPv4Address::getAddress | ( |  | ) | const  [inline] | 
      
 
 
      
        
          | uint32_t nut::IPv4Address::getAddressNBO | ( |  | ) | const  [inline] | 
      
 
 
      
        
          | bool nut::IPv4Address::setAddress | ( | const std::string & | addressString | ) |  [inline] | 
      
 
Tries to set the address according to the string addressString. Returns true if succesful, false otherwise. 
 
 
The documentation for this class was generated from the following file: