sources/network/udpsocket.h

changeset 157
42bb29924218
parent 152
6be21be4bea1
child 158
de7574d292ad
--- a/sources/network/udpsocket.h	Wed Jul 20 22:56:16 2016 +0300
+++ b/sources/network/udpsocket.h	Fri Jul 22 17:50:00 2016 +0300
@@ -38,7 +38,7 @@
 
 struct Datagram
 {
-	Bytestream message;
+	Vector<unsigned char> message;
 	IPAddress address;
 };
 
@@ -52,7 +52,7 @@
 
 	bool bind (unsigned short port);
 	bool read (Datagram& datagram);
-	bool send (const IPAddress& address, const Bytestream& data);
+	bool send (const IPAddress& address, const Vector<unsigned char>& data);
 	bool set_blocking (bool a);
 	const String& error_string() const { return m_error; }
 	int file_descriptor() const { return m_socket; }

mercurial