sources/network/udpsocket.h

changeset 186
9330b93d9946
parent 184
afd63357a03d
child 189
248d0b85cbda
--- a/sources/network/udpsocket.h	Wed Jan 27 14:16:58 2021 +0200
+++ b/sources/network/udpsocket.h	Wed Jan 27 18:55:03 2021 +0200
@@ -39,7 +39,7 @@
 struct Datagram
 {
 	ByteArray message;
-	IPAddress address;
+	net::ip_address address;
 };
 
 // -------------------------------------------------------------------------------------------------
@@ -52,7 +52,7 @@
 
 	bool bind (unsigned short port);
 	bool read (Datagram& datagram);
-	bool send (const IPAddress& address, const ByteArray& data);
+	bool send (const net::ip_address& address, const ByteArray& data);
 	bool set_blocking (bool a);
 	const std::string& error_string() const { return m_error; }
 	int file_descriptor() const { return m_socket; }

mercurial