Tutorial

Overview

This tutorial demonstrates how to use LWMsg to implement a file server daemon and client API that supports open, read, write, and close operations. Although a file server that only accepts clients over local IPC has limited use in the real world, it provides good coverage of most of LWMsg's features:

  • Type specification
  • Authentication using security tokens
  • Opaque handles
  • Implementing a multi-threaded server
  • Implementing a multi-threaded client API

This example is available in the LWMsg source distribution in the example/fserv subdirectory where it can be built and run.

Contents

  1. Walkthrough
  2. Source Code