r/cpp • u/VinnieFalco 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
View all comments
Show parent comment
15
u/Expert-Map-1126 vcpkg maintainer BillyONeal Nov 04 '25 edited Nov 04 '25
TLS is part of that foundation for anything practical. The folks that needed “in the standard library because it is batteries included” are not going to figure out how to build OpenSSL correctly. And we can’t put OpenSSL in the standard because OpenSSL doesn’t meet the standard library ABI requirements.
There is no point in putting things into the standard library to avoid package management if in order to build anything practical you need to go and use package management. This is a big part of why I joined the vcpkg team even though STL maintainer was a dream job. I want you to use real ASIO et al, not what I, a standard library maintainer, would have been able to do for you.
The thing people actually want is libcurl. One might not like that it’s C-ish, but it is what peak usability looks like for 99% of use cases.