mpd/src/net/IPv4Address.cxx
2023-03-06 14:59:48 +01:00

14 lines
305 B
C++

// SPDX-License-Identifier: BSD-2-Clause
// author: Max Kellermann <max.kellermann@gmail.com>
#include "IPv4Address.hxx"
#include <cassert>
IPv4Address::IPv4Address(SocketAddress src) noexcept
:address(src.CastTo<struct sockaddr_in>())
{
assert(!src.IsNull());
assert(src.GetFamily() == AF_INET);
}