List of all members.
Static Public Member Functions |
static std::string | ip2string (ip4_t addr) |
| Returns the string representation of a ip version 4 address.
|
static std::string | mac2string (mac_t addr) |
| Returns the string representation of a mac address.
|
static ip4_t | parseIP4Addr (const char *addr) |
| Returns an ip4_t representation of a version 4 ip address.
|
static mac_t | parseMACAddr (const char *addr) |
| Returns a mac_t representation of a mac address.
|
Member Function Documentation
string MKLib::ip2string |
( |
ip4_t |
addr | ) |
[static] |
Returns the string representation of a ip version 4 address.
- Parameters:
-
addr | The ip version 4 address. |
- Returns:
- A string of the form of dot-decimal notation (e.g., 192.168.0.1) representing the given ip address.
string MKLib::mac2string |
( |
mac_t |
addr | ) |
[static] |
Returns the string representation of a mac address.
- Parameters:
-
- Returns:
- A string of the form xx:xx:xx:xx representing the given mac address.
ip4_t MKLib::parseIP4Addr |
( |
const char * |
addr | ) |
[static] |
Returns an ip4_t representation of a version 4 ip address.
- Parameters:
-
A | version 4 ip address in the form of dot-decimal notation (e.g., 192.168.0.1) |
- Returns:
- An ip4_t representation of the given version 4 ip address.
- Exceptions:
-
mac_t MKLib::parseMACAddr |
( |
const char * |
addr | ) |
[static] |
Returns a mac_t representation of a mac address.
- Parameters:
-
A | mac address in the form of xx:xx:xx:xx:xx:xx (e.g., DE:AD:BE:EF:CA:FE) |
- Returns:
- A mac_t representation of the given mac address.
- Exceptions:
-
The documentation for this class was generated from the following files: