mirror of
https://github.com/caozhiyi/CppNet.git
synced 2026-01-26 16:30:05 +08:00
update readme.
This commit is contained in:
21
README.md
21
README.md
@@ -11,20 +11,21 @@ See the details in chinese [Wiki](https://github.com/caozhiyi/CppNet/wiki)
|
||||
|
||||
Cppnet is a proactor mode and multithreaded network with C++11 on tcp. Support Window, Linux and macOS.
|
||||
Simple:
|
||||
+ only export a little interfaces, all net ios insterface are asynchronous callbacks
|
||||
+ insterface as much as possible like calling the socket API of the system
|
||||
+ there is only one additional buffer object type for the client
|
||||
+ Only export a little interfaces, all net ios insterface are asynchronous callbacks
|
||||
+ Insterface as much as possible like calling the socket API of the system
|
||||
+ There is only one additional buffer object type for the client
|
||||
+ Support both IPv4 and IPv6
|
||||
|
||||
Fast:
|
||||
+ epoll, IOCP and kqueue are used
|
||||
+ multithreaded threads are handled by the kernel through port reuse
|
||||
+ each socket has a single memory pool object. All memory requested from the memory pool is managed by an intelligent pointer
|
||||
+ using time wheel to realize timer
|
||||
+ Use epoll, IOCP and kqueue
|
||||
+ Multithreaded threads are handled by the kernel through port reuse
|
||||
+ Each socket has a single memory pool object. All memory requested from the memory pool is managed by an intelligent pointer
|
||||
+ Using time wheel to realize timer
|
||||
|
||||
Clear:
|
||||
+ three layers: event-driven layer, session management layer and interface layer
|
||||
+ upward notification through callbacks between layers. Clear division of responsibilities among modules, pay to Caesar what belongs to Caesar and God what belongs to God
|
||||
+ the interface decoupling module is used to meet the minimum interface principle and dependency inversion principle
|
||||
+ Three layers: event-driven layer, session management layer and interface layer
|
||||
+ Upward notification through callbacks between layers. Clear division of responsibilities among modules, pay to Caesar what belongs to Caesar and God what belongs to God
|
||||
+ The interface decoupling module is used to meet the minimum interface principle and dependency inversion principle
|
||||
|
||||
## Interface
|
||||
|
||||
|
||||
@@ -14,6 +14,7 @@ Cppnet是一个封装在TCP协议上的proactor模式multi-thread C++11网络库
|
||||
+ 对外只导出了少量的调用接口,所有的网络IO都封装为异步回调的形式
|
||||
+ 接口声明都尽可能的像是调用系统socket API
|
||||
+ 对客户端而言,只多了一个新增的buffer对象类型
|
||||
+ 支持IPv6和IPv4
|
||||
|
||||
快速:
|
||||
+ 分别采用epoll,IOCP,kqueue做底层事件驱动
|
||||
|
||||
Reference in New Issue
Block a user