ClickHouse/src/Common/IPv6ToBinary.h
2020-04-03 18:14:31 +03:00

12 lines
266 B
C++

#include <array>
namespace Poco { namespace Net { class IPAddress; }}
namespace DB
{
/// Convert IP address to 16-byte array with IPv6 data (big endian). If it's an IPv4, map it to IPv6.
std::array<char, 16> IPv6ToBinary(const Poco::Net::IPAddress & address);
}