Skip to content

Commit b2d4eca

Browse files
committed
Return error_code and remove throwing overloads
1 parent b8b4aea commit b2d4eca

13 files changed

Lines changed: 509 additions & 564 deletions

File tree

‎doc/modules/ROOT/pages/guide/endpoints.adoc‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,8 @@ auto [ec] = co_await s.connect(target);
202202
[source,cpp]
203203
----
204204
corosio::tcp_acceptor acc(ioc);
205-
acc.listen(corosio::endpoint(8080)); // Bind to all interfaces
205+
if (auto ec = acc.listen(corosio::endpoint(8080))) // Bind to all interfaces
206+
return ec;
206207
----
207208

208209
== From Resolver Results

0 commit comments

Comments
 (0)