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

Added IPv6 class. It's working, but there's no support for extension headers yet.

This commit is contained in:
Matias Fontanini
2012-11-21 22:09:58 -03:00
parent ffdfb160c4
commit 8276e7d086
16 changed files with 636 additions and 15 deletions

View File

@@ -66,7 +66,14 @@ public:
IPv6Address();
/**
* \brief Constructor from a text representation.
* \brief Constructor from a text representation char*.
* \param addr The text representation from which to construct this
* object.
*/
IPv6Address(const char *addr);
/**
* \brief Constructor from a text representation std::string.
* \param addr The text representation from which to construct this
* object.
*/
@@ -181,6 +188,8 @@ public:
return os << addr.to_string();
}
private:
void init(const char *addr);
uint8_t address[address_size];
};
}