Summary
The concept of epoll, kqueue, and IOCP is pretty simple at a high level, but the devil is in the details. It’s just not that easy to understand and get it working correctly. Even programmers who work on these things will often specialize in one platform (epoll/kqueue or Windows). It’s rare that one person will know all the intricacies of all platforms, and you could probably write a whole book about this subject alone.
If we summarize what you’ve learned and got firsthand experience with in this chapter, the list is quite impressive:
- You learned a lot about how mio is designed, enabling you to go to that repository and know what to look for and how to get started on that code base much easier than before reading this chapter
- You learned a lot about making syscalls on Linux
- You created an epoll instance, registered events with it, and handled those events
- You learned quite a bit about how epoll is designed and its API
- You learned...