ioframe socket io frame设想中的C网络库

设想中的C网络库ioframe is a simple base socket library using libevent.http://blog.csdn.net/Solstice/archive/2010/03/10/5364096.aspx

按照

的思想提交的一份代码。

设想中的 C++ 网络库线程安全,支持多核多线程在不增加复杂度的前提下可以支持 FreeBSD/Darwin,方便将来用 Mac 作为开发用机,但不为它做性能优化。也就是说 IO multiplexing 使用 poll 和 epoll。主要支持 x86-64,兼顾 IA32不支持 UDP,只支持 TCP不支持 IPv6,只支持 IPv4不考虑广域网应用,只考虑局域网只支持一种使用模式:non-blocking IO + one event loop per thread,不考虑阻塞 IOAPI 简单易用,只暴露具体类和标准库里的类,不使用 non-trivial templates,也不使用虚函数只满足常用需求的 90%,不面面俱到,必要的时候以 app 来适应 lib只做 library,不做成 framework争取全部代码在 5000 行以内(不含测试)以上条件都满足时,可以考虑搭配 Google Protocol Buffers RPC欢迎批评[email protected]

开源地址https://code.google.com/p/ioframe/,可通过svn checkout

或通过https://code.google.com/p/ioframe/source/browse/#svn/trunk查看

谈了这么多 ACE 的优缺点,那么我心目中理想的网络库是什么样子的呢?

你可能感兴趣的:(ioframe socket io frame设想中的C网络库)