ithewei 11bfdcce2c update пре 3 година
..
Buffer.h 7272667d2e evpp: c++ classes of event пре 4 година
Channel.h 11bfdcce2c update пре 3 година
Event.h 5f8dba354d Add namespace hv for INVALID_TIMER_ID (#292) пре 3 година
EventLoop.h 00032a49c5 #244: timer thread-safe пре 3 година
EventLoopThread.h cae9dd3c21 constructor inject EventLoopPtr пре 3 година
EventLoopThreadPool.h 2d2fcbeec4 Impl LoadBalance пре 3 година
EventLoopThreadPool_test.cpp 516a9bc849 valgrind check пре 4 година
EventLoopThread_test.cpp 648183cec5 update пре 4 година
EventLoop_test.cpp 648183cec5 update пре 4 година
README.md 7272667d2e evpp: c++ classes of event пре 4 година
Status.h 4f9d8e9627 Add evpp: EventLoop EventLoopThread EventLoopThreadPool пре 5 година
TcpClient.h 4713894f07 closesocket thread-safe when reconnecting пре 3 година
TcpClientEventLoop_test.cpp 4ddebfc3e8 TestMultiClientsRunInOneEventLoop пре 3 година
TcpClient_test.cpp aba82b91f8 #221: save host and port for restart пре 3 година
TcpServer.h aba82b91f8 #221: save host and port for restart пре 3 година
TcpServer_test.cpp aba82b91f8 #221: save host and port for restart пре 3 година
TimerThread.h 00032a49c5 #244: timer thread-safe пре 3 година
TimerThread_test.cpp 00032a49c5 #244: timer thread-safe пре 3 година
UdpClient.h aba82b91f8 #221: save host and port for restart пре 3 година
UdpClient_test.cpp aba82b91f8 #221: save host and port for restart пре 3 година
UdpServer.h c637f7492a Add UdpServer::setKcp пре 3 година
UdpServer_test.cpp aba82b91f8 #221: save host and port for restart пре 3 година
build_test.sh a12be753c2 make evpp пре 4 година

README.md

The evpp module is designed to be header-only and does not participate in compilation. hloop.h is encapsulated into c++ classes, referring to muduo and evpp. You can modify and use evpp classes according to your own business.

evpp模块被设计成只包含头文件,不参与编译。 hloop.h中的c接口被封装成了c++的类,参考了muduo和evpp。 你能修改和使用这些类根据你自己的业务。

目录结构

.
├── Buffer.h                缓存类
├── Channel.h               通道类,封装了hio_t
├── Event.h                 事件类,封装了hevent_t、htimer_t
├── EventLoop.h             事件循环类,封装了hloop_t
├── EventLoopThread.h       事件循环线程类,组合了EventLoop和thread
├── EventLoopThreadPool.h   事件循环线程池类,组合了EventLoop和ThreadPool
├── TcpClient.h             TCP客户端类
├── TcpServer.h             TCP服务端类
├── UdpClient.h             UDP客户端类
└── UdpServer.h             UDP服务端类