sources/network/udpsocket.cpp

changeset 158
de7574d292ad
parent 157
42bb29924218
child 159
970d58a01e8b
child 180
2e7225dbd9b2
--- a/sources/network/udpsocket.cpp	Fri Jul 22 17:50:00 2016 +0300
+++ b/sources/network/udpsocket.cpp	Fri Jul 22 17:52:23 2016 +0300
@@ -135,13 +135,13 @@
 		decodedPacket, length, &decodedLength);
 	datagram.address.host = ntohl (claddr.sin_addr.s_addr);
 	datagram.address.port = ntohs (claddr.sin_port);
-	datagram.message = Vector<unsigned char>(decodedPacket, decodedLength);
+	datagram.message = ByteArray(decodedPacket, decodedLength);
 	return true;
 }
 
 // -------------------------------------------------------------------------------------------------
 //
-bool UDPSocket::send (const IPAddress& address, const Vector<unsigned char>& data)
+bool UDPSocket::send (const IPAddress& address, const ByteArray& data)
 {
 	int encodedlength = sizeof HuffmanBuffer;
 	HUFFMAN_Encode (data.data(), reinterpret_cast<unsigned char*> (HuffmanBuffer), data.size(), &encodedlength);

mercurial