Are sockets integrated into the C++ standard?
Are sockets integrated into the c++ standard
No.
Sockets are a part of the Posix and Winsock standards, not the C or C++ standard.
NB 'Non-JIT languages' have nothing to do with it.
The Networking TS expected to be part of C++17 standard is based on Boost.ASIO, so for now u might want to use Boost.ASIO
not in c++(20), yet...
But there has been movement in the last years. Technical specifications, Drafts, conference talks...
There‘s an article by Vinnie Falco ( developer of boost::beast and active c++ evangelist) on reddit
- socket.h in gcc (experimental)
- working draft
- experimental included in libstdc++
- 2019: Suggestion to the c++ committee to include it in c++2020