From 4c789900708e3f0e9810c2b5284c4a79a03fc42e Mon Sep 17 00:00:00 2001 From: levalup Date: Mon, 8 Jul 2024 20:58:06 +0800 Subject: [PATCH] update CHANGELOG.md, release r0.1.3. --- CHANGELOG.md | 5 ++++- examples/udp.cpp | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bca5f23..8ee9b96 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ ## v0.1.3 -> Since: 2024-07-02 +> Date: 2024-07-02 ### New features @@ -16,11 +16,13 @@ - Add examples. - `pipe`, `tcp` change state to `detached` after `connected`. - This is an experimental feature and may be adjusted before the official release. +- Add `uvcxx/cxx/sockaddr.h` to load/dump `sockaddr_*`. ## Bug fix - Fix the variable usage error in the `lib_t::open(string)` method. - Fix `pipe_connect` forgot set data field. +- Fix some cases where header files are not included. ## Break changes @@ -31,6 +33,7 @@ but also introduces some unnecessary complexity. - Remove `stream_t::accept`. - Overload the function in specific subtypes to avoid ambiguous semantics inherent in it. +- Remove meaningless `accpt` implementations in some stream subclasses. -------------------------------- diff --git a/examples/udp.cpp b/examples/udp.cpp index 1e76230..8d11f5e 100644 --- a/examples/udp.cpp +++ b/examples/udp.cpp @@ -60,7 +60,8 @@ int main() { std::cout << "server read: " << std::string(buf->base, nread) << " with " << uvcxx::to_string(uv_udp_flags(flags)) << " from " << uvcxx::any_address_t(addr) << std::endl; - }).except([=](const std::exception &e) { + } + ).except([=](const std::exception &e) { std::cout << "[ERROR] recv " << addr << " failed. " << e.what() << std::endl; throw uvcxx::close_handle(); });