最佳 C/C++ 网络库
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/118945/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Best C/C++ Network Library
提问by Hortitude
I haven't done work in C/C++ for a little bit and was just wondering what people's favorite cross platform libraries are to use.
我有一段时间没有在 C/C++ 中工作过,只是想知道人们最喜欢使用哪些跨平台库。
I'm looking for something that is a good quick and dirty library as well as a library that is a little more robust. Often those are two different libraries and that's okay.
我正在寻找一个既快速又脏的库以及一个更健壮的库。通常那些是两个不同的库,这没关系。
回答by Ferruccio
Aggregated List of Libraries
图书馆汇总列表
- Boost.Asiois really good.
- Asiois also available as a stand-alone library.
- ACEis also good, a bit more mature and has a coupleof booksto support it.
- C++ Network Library
- POCO
- Qt
- Raknet
- ZeroMQ(C++)
- nanomsg(C Library)
- nng(C Library)
- Berkeley Sockets
- libevent
- Apache APR
- yield
- Winsock2(Windows only)
- wvstreams
- zeroc
- libcurl
- libuv(Cross-platform C library)
- SFML's Network Module
- C++ Rest SDK (Casablanca)
- RCF
- Restbed (HTTP Asynchronous Framework)
- SedNL
- SDL_net
- OpenSplice|DDS
- facil.io(C, with optional HTTP and Websockets, Linux / BSD / macOS)
- GLib Networking
- grpcfrom Google
- GameNetworkingSocketsfrom Valve
- CYSocketsTo do easy things in the easiest way
- Boost.Asio真的很好。
- Asio也可作为独立库使用。
- ACE还不错,有点更加成熟和有对夫妇的书籍来支持它。
- C++ 网络库
- POCO
- Qt
- 拉克内特
- ZeroMQ(C++)
- nanomsg(C 库)
- nng(C 库)
- 伯克利插座
- 自由事件
- 阿帕奇APR
- 屈服
- Winsock2(仅限 Windows)
- 视频流
- 零点
- 卷曲
- libuv(跨平台 C 库)
- SFML 的网络模块
- C++ Rest SDK(卡萨布兰卡)
- RCF
- Restbed(HTTP 异步框架)
- 国家语言学会
- SDL_net
- OpenSplice|DDS
- facil.io(C,带有可选的 HTTP 和 Websockets,Linux / BSD / macOS)
- GLib 网络
- 来自谷歌的grpc
- Valve 的GameNetworkingSockets
- CYSockets以最简单的方式做简单的事情