便携式Socket编程的C / C ++可能吗? [英] Portable Socket programming in C/C++ possible?

查看:110
本文介绍了便携式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 ++可能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆