#include <ipv4_addr.hpp>
|
| IpAddr (uint8_t byte0, uint8_t byte1, uint8_t byte2, uint8_t byte3) |
|
| IpAddr (std::string ip_address) |
|
Definition at line 11 of file ipv4_addr.hpp.
◆ IpAddr() [1/2]
dunedaq::dpdklibs::IpAddr::IpAddr |
( |
uint8_t | byte0, |
|
|
uint8_t | byte1, |
|
|
uint8_t | byte2, |
|
|
uint8_t | byte3 ) |
|
inline |
◆ IpAddr() [2/2]
dunedaq::dpdklibs::IpAddr::IpAddr |
( |
std::string | ip_address | ) |
|
|
inline |
Definition at line 15 of file ipv4_addr.hpp.
15 {
16 std::vector<uint8_t> bytes;
17 std::istringstream
f(ip_address);
19 while (getline(f, s, '.')) {
20
21 bytes.push_back(std::stoi(s));
22 }
23
24 for (size_t i = 0; i < bytes.size(); ++i) {
26 }
27 }
◆ addr_bytes
uint8_t dunedaq::dpdklibs::IpAddr::addr_bytes[4] |
The documentation for this struct was generated from the following file:
- /github/workspace/dunedaq/sourcecode/dpdklibs/include/dpdklibs/ipv4_addr.hpp