network: IP address constructor interface should be updated.
The current constructors and setters accepts a char*
, while we should move to a std::string
:
Ipv4Mask::Ipv4Mask(const char* mask)
Ipv4Address::Ipv4Address(const char* address);
Ipv4Address::Set(const char* address)
Ipv6Address::Ipv6Address(const char* address)
Ipv6Address::Set(const char* address)
Ipv6Prefix::Ipv6Prefix(const char* prefix)
Ipv6Prefix::Ipv6Prefix(const char* prefix, uint8_t prefixLength)
The plan is to:
- Add new functions accepting a
std::string
, - Deprecate the
char*
ones, - [Much later] remove the deprecated ones.