diff -r 90bf9049e5eb -r 2e6cbacafdc7 sources/network/udpsocket.h --- a/sources/network/udpsocket.h Wed Jan 27 19:28:18 2021 +0200 +++ b/sources/network/udpsocket.h Wed Jan 27 19:32:55 2021 +0200 @@ -43,7 +43,7 @@ struct net::Datagram { - ByteArray message; + std::vector message; net::ip_address address; }; @@ -56,7 +56,7 @@ virtual ~UDPSocket(); [[nodiscard]] bool bind(port_t port, std::ostream &errors); [[nodiscard]] bool read(Datagram& datagram, std::ostream& errors); - [[nodiscard]] bool send(const ip_address& address, const ByteArray& data, std::ostream &errors); + [[nodiscard]] bool send(const ip_address& address, const std::vector& data, std::ostream &errors); [[nodiscard]] bool set_blocking(bool a, std::ostream &errors); const int file_descriptor; };