Skip to content


Subversion checkout URL

You can clone with
Download ZIP
C++11 library for network services on modern x86_64 Linux
C++ C Python CMake Shell Ragel in Ruby Host Other
Failed to load latest commit information.
benchmarks add option for channel buffer size
cmake eliminate unused typedefs so warning need not be suppressed
doc remove obsolete references to libboost-test-dev
examples build tests and fix some examples bit rot
googletest add googletest
include remove external code
src don't put canceled or deadlined tasks to sleep
tests fix bug in channel clear
.gitignore ignore build dir and local scripts
.travis.yml ctest output on failure and fail build when tests fail
LICENSE add Apache 2 License fix travis test run

libten Build Status

C++11 library for network services on modern x86-64 Linux.


  • lightweight cooperative tasks (using boost.context)
  • typed channels for communicating between threads and tasks
  • http client and server
  • fast uri parser
  • JSON parser (wrapper around jansson)
  • logging (glog)
  • rpc (using msgpack)
  • epoll event loop


Or rather why not libevent, libev, or boost.asio? libten is designed around the concept of task-based concurrency, while the other libraries are designed for event driven concurrency with callbacks. They are not entirely at odds, libten's event loop could be built on any of these libraries. However, another major difference is that other libraries strive to provide a cross platform solution to event driven network programming. They are great if you need portable code that works across many versions and platforms. libten's approach is to focus only on modern Linux, modern compilers, and performance. This makes libten's code base smaller and easier to maintain, with very minimal abstraction. libten uses epoll, timerfd, and signalfd. In addition to networking and concurrency it provides logging, JSON, URI, http client and server, rpc, zookeeper and more.

API Stability

libten is not a stable API yet. Don't let this scare you away though. Most changes at this point are minor and incremental.


  • cmake >= 2.8
  • g++ >= 4.7.0
  • libssl-dev >= 0.9.8
  • libboost-dev >= 1.51
  • libboost-date-time-dev >= 1.51
  • libboost-program-options-dev >= 1.51
  • libboost-context-dev >= 1.51
  • ragel >= 6.5
  • libjansson-dev >= 2.3
  • libc-ares-dev

Bundled 3rd-party components

Something went wrong with that request. Please try again.