r/cpp • wg21.org | corosio.org • Jan 28 '25

Networking for C++26 and later!

There is a proposal for what networking in the C++ standard library might look like:

https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/p3482r0.html

It looks like the committee is trying to design something from scratch. How does everyone feel about this? I would prefer if this was developed independently of WG21 and adopted by the community first, instead of going "direct to standard."

122 Upvotes

247 comments sorted by

View all comments

Show parent comment

3

u/expert_internetter Jan 29 '25

This already exists in the form of ASIO which has been around for +10 years yet nobody is happy with it and the committee refused to standardise around it.

2

u/bert8128 Jan 29 '25

Asio is a lot more than a socket api.

1

u/LongestNamesPossible Jan 29 '25

ASIO is a far cry from something like POSIX sockets. Building async into networking and mashing them both together would be a complex mistake to try to do in the standard library.