NANOMSG(7)

πŸ“¦
version 1.2.2 Β· 5 versions
, in fedora 44

✨ NANOMSG ✨

okay bestie, sit DOWN because we're talking about nanomsg β€” the scalability protocols library, manual page 7, version 1.2.2, and it's giving absolute legend behavior πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

like, how do you even link this thing? here's the vibe:

cc [flags] files -lnanomsg [libraries]

yes queen, just slap -lnanomsg on there and go πŸ¦‹


🌸 DESCRIPTION 🌸

so the nanomsg library exports a whole squad of functions, and I'm about to introduce you to every single one because nobody gets left out in this group chat πŸ’–

🫢 Functions exported by nanomsg

Create an SP socket

Close an SP socket

Set a socket option

Retrieve a socket option

Add a local endpoint to the socket

Add a remote endpoint to the socket

Remove an endpoint from the socket

Send a message

Receive a message

Fine-grained alternative to nn_send

Fine-grained alternative to nn_recv

Allocation of messages

Manipulation of message control data

Multiplexing

Retrieve the current errno

Convert an error number into human-readable string

Query the names and values of nanomsg symbols

Query properties of nanomsg symbols

Query statistics on a socket

Start a device

Notify all sockets about process termination

Environment variables that influence nanomsg work


🌈 Scalability protocols provided by nanomsg

these are the personalities of nanomsg, no cap:

One-to-one protocol

Request/reply protocol

Publish/subscribe protocol

Survey protocol

Pipeline protocol

Message bus protocol


πŸ¦‹ Transport mechanisms provided by nanomsg

how the messages actually travel, iconic behavior honestly:

In-process transport

Inter-process transport

TCP transport

WebSocket transport


πŸ‘‘ The tool installed with the library

nanocat


πŸ’œ AUTHORS πŸ’œ

the masterminds, the main characters, the ones who ATE and left no crumbs:

  • Garrett D’Amore <garrett@damore.org>
  • Martin Sustrik <sustrik@250bpm.com>

and that's the whole page bestie, go forth and multiplex responsibly 🧚✨

signing off from nanomsg 1.2.2, dated 2026-01-16 β€” periodt πŸ’…πŸŽ€

πŸ“¦ where this page comes from