epoll demo
  • C 85.9%
  • Shell 7.6%
  • M4 3.3%
  • Makefile 3.2%
Find a file
2017-11-21 07:30:13 +13:00
doc More files 2017-11-21 07:30:13 +13:00
m4 Autoconf setup 2013-06-04 21:00:45 +12:00
src More files 2017-11-21 07:30:13 +13:00
.gitignore ignore "compile" from autoconf 2017-11-21 07:30:13 +13:00
AUTHORS Autoconf setup 2013-06-04 21:00:45 +12:00
autogen.sh Autoconf setup 2013-06-04 21:00:45 +12:00
BUGS Autoconf setup 2013-06-04 21:00:45 +12:00
ChangeLog Autoconf setup 2013-06-04 21:00:45 +12:00
configure.ac Autoconf setup 2013-06-04 21:00:45 +12:00
LICENSE MIT license 2015-10-06 15:29:17 +13:00
Makefile.am Autoconf setup 2013-06-04 21:00:45 +12:00
README.md Create README.md 2014-11-03 16:28:49 +13:00

epoll_demo

This is an example demonstration of how to use epoll() on linux with maximum functionality including:

  • Asynchronous I/O
  • edge-triggered mode
  • Handling signals, timers, and file/network I/O with the same syscall
  • Multi-threaded event loop

The code is a stripped-down version of a graph database I never finished, so the variable and function names may not be the best choice for a demo, but it should work.