Legacy C API
Start with libnanomsg.
The original nanomsg C API is for existing applications and bindings that already depend on it. For new C work, use the NNG guide instead.
The complete legacy C tutorial is now hosted here: every pattern has its explanation, full source, compilation command, invocation, and sample output. Use it to maintain existing libnanomsg applications; choose NNG for new C work.
This is the legacy API. Keep it for existing applications and bindings; use NNG for new C projects.