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

前端 未结 6 1930
忘掉有多难
忘掉有多难 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:06

    I think it should, since a lot of other popular languages support socket operations as a part of the language (they don't force the user to use any OS-specific API). If we already have file streams to read/write local files, I don't see why we can't have some method of transferring data with sockets.

提交回复
热议问题