1 | #include <array> |
---|---|
2 | |
3 | namespace Poco { namespace Net { class IPAddress; }} |
4 | |
5 | namespace DB |
6 | { |
7 | |
8 | /// Convert IP address to 16-byte array with IPv6 data (big endian). If it's an IPv4, map it to IPv6. |
9 | std::array<char, 16> IPv6ToBinary(const Poco::Net::IPAddress & address); |
10 | |
11 | } |
12 |