--- 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<unsigned char>{&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<unsigned char>& data, std::ostream& errors) { int encodedlength = sizeof HuffmanBuffer; ::HUFFMAN_Encode(data.data(), reinterpret_cast<unsigned char*>(HuffmanBuffer), data.size(), &encodedlength);