sources/network/udpsocket.cpp

changeset 152
6be21be4bea1
parent 145
d0aedc9be448
child 153
82aac80a2f1d
child 157
42bb29924218
--- a/sources/network/udpsocket.cpp	Wed Jul 20 17:53:13 2016 +0300
+++ b/sources/network/udpsocket.cpp	Wed Jul 20 18:20:20 2016 +0300
@@ -133,9 +133,9 @@
 	int decodedLength = sizeof decodedPacket;
 	HUFFMAN_Decode (reinterpret_cast<unsigned char*> (HuffmanBuffer),
 		decodedPacket, length, &decodedLength);
-	datagram.from.host = ntohl (claddr.sin_addr.s_addr);
-	datagram.from.port = ntohs (claddr.sin_port);
-	datagram.data = Bytestream (decodedPacket, decodedLength);
+	datagram.address.host = ntohl (claddr.sin_addr.s_addr);
+	datagram.address.port = ntohs (claddr.sin_port);
+	datagram.message = Bytestream (decodedPacket, decodedLength);
 	return true;
 }
 

mercurial