// SPDX-License-Identifier: BSD-2-Clause // author: Max Kellermann #include "IPv4Address.hxx" #include IPv4Address::IPv4Address(SocketAddress src) noexcept :address(src.CastTo()) { assert(!src.IsNull()); assert(src.GetFamily() == AF_INET); }