--- a/sources/network/udpsocket.cpp Wed Jan 27 14:16:58 2021 +0200 +++ b/sources/network/udpsocket.cpp Wed Jan 27 18:55:03 2021 +0200 @@ -141,11 +141,11 @@ // ------------------------------------------------------------------------------------------------- // -bool UDPSocket::send (const IPAddress& address, const ByteArray& data) +bool UDPSocket::send (const net::ip_address& address, const ByteArray& data) { int encodedlength = sizeof HuffmanBuffer; HUFFMAN_Encode (data.data(), reinterpret_cast<unsigned char*> (HuffmanBuffer), data.size(), &encodedlength); - sockaddr_in claddr = address.to_sockaddr_in(); + sockaddr_in claddr = net::ip_address_to_sockaddr_in(address); int res = ::sendto (m_socket, HuffmanBuffer, encodedlength, 0, reinterpret_cast<sockaddr*> (&claddr), sizeof claddr);