(1)ACE
龐大、復雜,適合大型項目。開源、免費,不依賴第三方庫,支持跨平台。
http://www.cs.wustl.edu/~schmidt/ACE.html
http://download.dre.vanderbilt.edu/
(2)Asio
Asio基於Boost開發的異步IO庫,封裝了Socket,簡化基於socket程序的開發。
開源、免費,支持跨平台。
(3)POCO
POCO C++ Libraries 提供一套 C++ 的類庫用以開發基於網絡的可移植的應用程序,功能涉及線程、線程同步、文件系統訪問、流操作、共享庫和類加載、套接字以及網絡協議包括:HTTP、 FTP、SMTP 等;其本身還包含一個 HTTP 服務器,提供 XML 的解析和 SQL 數據庫的訪問接口。POCO庫的模塊化、高效的設計及實現使得POCO特別適合嵌入式開發。在嵌入式開發領域,由於C++既適合底層(設備I/O、中斷處理等)和高層面向對象開發,越來越流行。
(4)libevent
Libevent是一個輕量級的開源高性能網絡庫,從它的官網標題:libevent-an event notification library就能知道它的機制是采用事件觸發,封裝了以下三種事件的響應:IO事件,定時器事件,信號事件。select模型來實現跨平台的操作,Windows環境下支持IOCP。Google的開源WEB瀏覽器Chromium在Mac和Linux版本中,也使用了Libevent,足見該庫的質量。
(5)libev
libev和libevent很像,按照作者的介紹,可以作為libevent的替代者,能夠提供更高的性能。
libev是一個高性能事件循環,所實現的功能就是一個強大的reactor。
http://software.schmorp.de/pkg/libev.html
(6)c++ sockets library
封裝了sockets C API的C++類庫。
支持SSL, IPv6, tcp 和 udp sockets, sctp sockets, http協議, 高度可定制的錯誤處理。
(7)libcurl
libcurl是免費的輕量級的客戶端網絡庫,支持DICT, FILE, FTP, FTPS, Gopher, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, Telnet, TFTP. 支持SSL, HTTP POST, HTTP PUT, FTP上傳, HTTP form上傳,代理,cookies, 用戶名與密碼認證。
如果你開發的是客戶端,libcurl是一個不錯的選擇。
(8)RudeSocket™ Open Source C++ Socket Library
RudeSocket™ Open Source C++ Socket Library是一個開源的輕量級客戶端網絡庫,支持Sockes 4, Socks 5, HTTP Proxy,支持SSL,簡單易用,跨平台,適合初學者及簡單網絡通信開發者。
http://rudeserver.com/socket/index.html
For More Details,See Aggregated List of Libraries
- Boost.Asio is really good.
- Asio is also available as a stand-alone library.
- ACE is also good, a bit more mature and has a couple of books to support it.
- C++ Network Library
- POCO
- Qt
- Raknet
- ZeroMQ (C++)
- nanomsg (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
- gprc from Google