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:
Implement each of the callbacks required by some protocol
(e.g. see The HTTP Protocol)
Create a protocol object, passing in your callbacks.
(e.g.
ymo_proto_http_create()
)Create, initialize, and start your server
(
ymo_server_create()
,ymo_server_init()
,ymo_server_start()
)Start your event loop with ev_run.
- 1
(WIP, also — like everything else here!)