This ‘book’ is a small set of tutorials about using libuv as a high performance evented I/O library which offers the same API on Windows and Unix.
It is meant to cover the main areas of libuv, but is not a comprehensive reference discussing every function and data structure. The official libuv documentation is included directly in the libuv header file.
This book is still a work in progress, so sections may be incomplete, but I hope you will enjoy it as it grows.
Who this book is for¶
If you are reading this book, you are either:
- a systems programmer, creating low-level programs such as daemons or network services and clients. You have found that the event loop approach is well suited for your application and decided to use libuv.
This book assumes that you are comfortable with the C programming language.
Since then libuv has continued to mature and become a high quality standalone library for system programming. Users outside of node.js include Mozilla’s Rust programming language, and a variety of language bindings.
The first independently release version of libuv was 0.10.2.
All the code from this book is included as part of the source of the book on Github. Clone/Download the book and run make in the code/ folder to compile all the examples. This book and the code is based on libuv version v0.11.1 and a version is included in the libuv/ folder which will be compiled automatically.