44 unsigned char bytes[4];
45 bytes[3] = ipAddressInt & 0xFF;
46 bytes[2] = (ipAddressInt >> 8) & 0xFF;
47 bytes[1] = (ipAddressInt >> 16) & 0xFF;
48 bytes[0] = (ipAddressInt >> 24) & 0xFF;
51 str +=
"." + std::to_string(static_cast<int>(bytes[1]));
52 str +=
"." + std::to_string(static_cast<int>(bytes[2]));
53 str +=
"." + std::to_string(static_cast<int>(bytes[3]));
67 char *runner = const_cast<char *>(_ip.c_str());
68 unsigned long factor = 1;
70 unsigned int reset = 0;
75 while ((_ip.c_str() - runner--))
83 temp += (factor * static_cast<unsigned long>(*(runner) -
'0') * (reset == 1 ? 10 : (reset == 2 ? 100 : 1)));
static IPAddressUInt ToIPAddressUInt(const IPAddress &ip)
Creates an uint ip . from the given IPAddress
Definition: network_connection.hpp:64
Basic network connection operations.
Definition: network_connection.hpp:14
static IPAddress ToIPAddress(const IPAddressUInt &ipAddressInt)
Creates an IPAddress from the given uint ip .
Definition: network_connection.hpp:42
Root namespace for the Image Manager interface.
Definition: version.hpp:11