1 #include "hmbdc/Copyright.hpp" 6 namespace hmbdc {
namespace text {
9 ipStr2Uint32(
char const* ipStr) {
10 uint32_t byte1, byte2, byte3, byte4;
12 std::istringstream s(ipStr);
13 s >> byte1 >> dot >> byte2 >> dot >> byte3 >> dot >> byte4 >> dot;
15 res = (res << 8u) + byte2;
16 res = (res << 8u) + byte3;
17 res = (res << 8u) + byte4;