UHD 003.004.000-release
|
#include <mac_addr.hpp>
Public Member Functions | |
byte_vector_t | to_bytes (void) const |
std::string | to_string (void) const |
Static Public Member Functions | |
static mac_addr_t | from_bytes (const byte_vector_t &bytes) |
static mac_addr_t | from_string (const std::string &mac_addr_str) |
Wrapper for an ethernet mac address. Provides conversion between string and binary formats.
static mac_addr_t uhd::mac_addr_t::from_bytes | ( | const byte_vector_t & | bytes | ) | [static] |
Create a mac address a byte array.
bytes | a vector of bytes |
static mac_addr_t uhd::mac_addr_t::from_string | ( | const std::string & | mac_addr_str | ) | [static] |
Create a mac address from a string.
mac_addr_str | the string with delimiters |
byte_vector_t uhd::mac_addr_t::to_bytes | ( | void | ) | const |
Get the byte representation of the mac address.
std::string uhd::mac_addr_t::to_string | ( | void | ) | const |
Get the string representation of this mac address.