Lely core libraries  1.9.2
I/O library overview

All I/O devices are represented by the same handle (io_handle_t, see lely/io/io.h), providing a uniform interface. This handle is a reference-counted wrapper around a platform-specific file descriptor or handle. A C++ interface for I/O device handles can be found in lely/io/io.hpp.

The following I/O devices are supported:

Additionally, serial I/O device attributes can be manipulated with the functions in lely/io/attr.h, while network addresses and interfaces can be queried and manipulated with the functions in lely/io/addr.h and lely/io/if.h, respectively.

Depending on the platform, some or all of the I/O devices can be polled for events. Combined with non-blocking access, this allows an application to use the reactor pattern to concurrently handle multiple I/O channels. The polling interface is provided by lely/io/poll.h (see lely/io/poll.hpp for the C++ interface).