便携式Socket编程的C / C ++可能吗?

编程入门 行业动态 更新时间:2024-10-09 20:29:11
本文介绍了便携式Socket编程的C / C ++可能吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想创建一个多平台移植的C ++服务器的客户端应用程序。它甚至有可能,而只使用标准库?如果没有,还有什么其他的库有哪些?

I am thinking of creating a multi-platform portable C++ server-client application. Is it even possible while using only standard libraries? If no, what other libraries are there?

有没有在这个方向在C ++ 11倍的改进?像线程,现在我们的std ::线程。

Are there any improvements in this direction in C++11x? Like for threads, now we have std::threads.

要更清楚..我想是这样的boost ::线程,它提供多平台的便携式多线程联网。

To make it more clear.. I want something like boost::thread, which provides multiplatform portable multithreading, for networking.

和C ++为什么没有像网络这样的基本的东西库(标准)?

And why C++ doesn't have libraries(standard) for such basic things like networking?

更新:相较于Python的,里面什么都有(几乎)内置于它......为什么在C ++

Update: Comparing to Python, which has everything (almost) built in to it... why not in C++?

推荐答案

有是的升压短耳。它已经存在了,只有少数几年......很久以前我们有 ACE ,但感觉现在过时了。

There is Boost Asio. It has existed for "only" a small number of years...long ago we had ACE, but it feels dated now.

更多推荐

便携式Socket编程的C / C ++可能吗?

本文发布于:2023-07-06 07:31:48,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1047305.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Socket

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!