Skip to content
forked from wlgq2/uv-cpp

libuv wrapper in C++11. /libuv C++11封装。

License

Notifications You must be signed in to change notification settings

hyabean/libuv_cpp11

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libuv_cpp11

Github release Platform License Project Status: Active – The project has reached a stable, usable state and is being actively developed.


Language Translations:


Features

  • C++11 style callbacks instead of C: You can use class member functions or lambda as callbacks.
  • TimerandTimerWheel:Heartbeat timeout judgment mechanism with time complexity of O(1).
  • Async:Optimized the problem of calling multiple times, perhaps only once, compared to the libuv's async.
  • PacketandPacketBuffer:Send and receive packet data, used to resolve TCP stubs/stickers.
  • Log interface.

Simple test:one thread 1k bytes ping-pong。
environment:Intel Core i5 6402 + ubuntu14.04.5 + gcc5.5.0 + libuv1.22.0 + O2优化

  libuv_cpp  no use PacketBuffer CycleBuffer ListBuffer
Times/Sec 192857 141487 12594

About

libuv wrapper in C++11. /libuv C++11封装。

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 100.0%