chickadee » epoll

Outdated egg!

This is an egg for CHICKEN 4, the unsupported old release. You're almost certainly looking for the CHICKEN 5 version of this egg, if it exists.

If it does not exist, there may be equivalent functionality provided by another egg; have a look at the egg index. Otherwise, please consider porting this egg to the current version of CHICKEN.

Epoll

Introduction

This egg provides an interface to epoll on Linux. Epoll is a way to use event-based programming for managing file descriptors instead of relying on select for determining when it's okay to read or write on a file descriptor. Epoll is provided in the Linux kernel, so this egg won't work on other systems.

Something I've been considering working on is bindings for libevent. If someone else wants to work on a libevent egg I'm all for it. If no one else does it I will.

Example

Rooster uses this epoll egg, so you can use that as a starting point. Here's a direct link to the rooster.scm file.

Author

David Reynolds (david@alwaysmovefast.com)

License

BSD

Requirements

Linux with sys/epoll.