sources/network/udpsocket.h

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

mercurial