1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 02:35:57 +01:00

IPv4Address now uses inet_pton when constructing from string.

This commit is contained in:
Matias Fontanini
2014-08-28 22:53:47 -03:00
parent e7e66808a4
commit 74c85085fb
2 changed files with 23 additions and 22 deletions

View File

@@ -177,7 +177,7 @@ public:
*/
friend std::ostream &operator<<(std::ostream &output, const IPv4Address &addr);
private:
uint32_t ip_to_int(const std::string &ip);
uint32_t ip_to_int(const char* ip);
uint32_t ip_addr;
};