Will (and should) there be sockets in C++11?

前端 未结 6 1929
忘掉有多难
忘掉有多难 2021-02-01 00:16

Is the new C++11 going to contain any socket library? So that one could do something std::socket-ish?

Seeing as how std::thread will be added,

6条回答
  •  無奈伤痛
    2021-02-01 01:09

    This is so weird that in 2020, there is still no standard for a basic OS construct as sockets in C++.

    The closest I found is kissnet (Apparently exists since 2019).

    It's small (~1700 lines), runs on Windows and Linux, uses OpenSSL, and requires C++ 17 (Which is a plus in my book), basically everything I needed.

提交回复
热议问题