diff -r 90bf9049e5eb -r 2e6cbacafdc7 sources/network/udpsocket.cpp --- a/sources/network/udpsocket.cpp Wed Jan 27 19:28:18 2021 +0200 +++ b/sources/network/udpsocket.cpp Wed Jan 27 19:32:55 2021 +0200 @@ -134,11 +134,11 @@ decodedPacket, length, &decodedLength); datagram.address.host = ntohl(claddr.sin_addr.s_addr); datagram.address.port = ntohs(claddr.sin_port); - datagram.message = ByteArray{&decodedPacket[0], &decodedPacket[decodedLength]}; + datagram.message = std::vector{&decodedPacket[0], &decodedPacket[decodedLength]}; return true; } -bool net::UDPSocket::send(const net::ip_address& address, const ByteArray& data, std::ostream& errors) +bool net::UDPSocket::send(const net::ip_address& address, const std::vector& data, std::ostream& errors) { int encodedlength = sizeof HuffmanBuffer; ::HUFFMAN_Encode(data.data(), reinterpret_cast(HuffmanBuffer), data.size(), &encodedlength);