Guide to the C API

This section gives a high-level view of libyimmo usage, architecture, and development files. It isn’t a tutorial (coming soon!), just some supplementary information that ought to make the API docs 1 more intelligible.

The Basics

At a high-level, this is the way it works:

  1. Implement each of the callbacks required by some protocol

    (e.g. see The HTTP Protocol)

  2. Create a protocol object, passing in your callbacks.

    (e.g. ymo_proto_http_create())

  3. Create, initialize, and start your server

    (ymo_server_create(), ymo_server_init(), ymo_server_start())

  4. Start your event loop with ev_run.

1

(WIP, also — like everything else here!)