An Introduction to libuv: Release 2.0.0
Free
An Introduction to libuv: Release 2.0.0
By Nikhil Marathe
Free
Book Description

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 may be consulted for full details.

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.


a node.js module writer, who wants to wrap platform APIs written in C or C++ with a set of (a)synchronous APIs that are exposed to JavaScript. You will use libuv purely in the context of node.js. For this you will require some other resources as the book does not cover parts specific to v8/node.js.

This book assumes that you are comfortable with the C programming language.

Table of Contents
  • Table of Contents
  • Introduction
    • Who this book is for
    • Introduction
    • Background
    • Code
  • Basics of libuv
    • Event loops
    • Hello World
    • Error handling
    • Basics of libuv
    • Handles and Requests
  • Filesystem
    • Reading/Writing files
    • Filesystem operations
    • Buffers and Streams
    • File change events
    • Filesystem
  • Networking
    • TCP
    • UDP
    • Querying DNS
    • Network interfaces
    • Networking
  • Threads
    • Core thread operations
    • Synchronization Primitives
    • libuv work queue
    • Inter-thread communication
    • Threads
  • Processes
    • Spawning child processes
    • Changing process parameters
    • Detaching processes
    • Sending signals to processes
    • Signals
    • Child Process I/O
    • Pipes
    • Processes
  • Advanced event loops
    • Stopping an event loop
    • Advanced event loops
  • Utilities
    • Timers
    • Event loop reference count
    • Idler pattern
    • Passing data to worker thread
    • External I/O with polling
    • Check & Prepare watchers
    • Loading libraries
    • TTY
    • Utilities
  • About
    • Licensing
    • About
    No review for this book yet, be the first to review.
      No comment for this book yet, be the first to comment
      You May Also Like
      Also Available On
      App store smallGoogle play small
      Categories
      Curated Lists
      • Pattern Recognition and Machine Learning (Information Science and Statistics)
        by Christopher M. Bishop
        Data mining
        by I. H. Witten
        The Elements of Statistical Learning: Data Mining, Inference, and Prediction
        by Various
        See more...
      • CK-12 Chemistry
        by Various
        Concept Development Studies in Chemistry
        by John Hutchinson
        An Introduction to Chemistry - Atoms First
        by Mark Bishop
        See more...
      • Microsoft Word - How to Use Advanced Algebra II.doc
        by Jonathan Emmons
        Advanced Algebra II: Activities and Homework
        by Kenny Felder
        de2de
        by
        See more...
      • The Sun Who Lost His Way
        by
        Tania is a Detective
        by Kanika G
        Firenze_s-Light
        by
        See more...
      • Java 3D Programming
        by Daniel Selman
        The Java EE 6 Tutorial
        by Oracle Corporation
        JavaKid811
        by
        See more...