'\" t .\" Title: nanomsg .\" Author: [see the "AUTHOR(S)" section] .\" Generator: Asciidoctor 2.0.20 .\" Date: 2024-02-21 .\" Manual: nanomsg 1.2.1 .\" Source: \ \& .\" Language: English .\" .TH "NANOMSG" "7" "2024-02-21" "\ \&" "nanomsg 1.2.1" .ie \n(.g .ds Aq \(aq .el .ds Aq ' .ss \n[.ss] 0 .nh .ad l .de URL \fI\\$2\fP <\\$1>\\$3 .. .als MTO URL .if \n[.g] \{\ . mso www.tmac . am URL . ad l . . . am MTO . ad l . . . LINKSTYLE blue R < > .\} .SH "NAME" nanomsg \- scalability protocols library .SH "SYNOPSIS" .sp \fBcc\fP [\fIflags\fP] \fIfiles\fP \fB\-lnanomsg\fP [\fIlibraries\fP] .SH "DESCRIPTION" .sp Following functions are exported by nanomsg library: .sp Create an SP socket .RS 4 nn_socket(3) .RE .sp Close an SP socket .RS 4 nn_close(3) .RE .sp Set a socket option .RS 4 nn_setsockopt(3) .RE .sp Retrieve a socket option .RS 4 nn_getsockopt(3) .RE .sp Add a local endpoint to the socket .RS 4 nn_bind(3) .RE .sp Add a remote endpoint to the socket .RS 4 nn_connect(3) .RE .sp Remove an endpoint from the socket .RS 4 nn_shutdown(3) .RE .sp Send a message .RS 4 nn_send(3) .RE .sp Receive a message .RS 4 nn_recv(3) .RE .sp Fine\-grained alternative to nn_send .RS 4 nn_sendmsg(3) .RE .sp Fine\-grained alternative to nn_recv .RS 4 nn_recvmsg(3) .RE .sp Allocation of messages .RS 4 nn_allocmsg(3) nn_reallocmsg(3) nn_freemsg(3) .RE .sp Manipulation of message control data .RS 4 nn_cmsg(3) .RE .sp Multiplexing .RS 4 nn_poll(3) .RE .sp Retrieve the current errno .RS 4 nn_errno(3) .RE .sp Convert an error number into human\-readable string .RS 4 nn_strerror(3) .RE .sp Query the names and values of nanomsg symbols .RS 4 nn_symbol(3) .RE .sp Query properties of nanomsg symbols .RS 4 nn_symbol_info(3) .RE .sp Query statistics on a socket .RS 4 nn_get_statistic(3) .RE .sp Start a device .RS 4 nn_device(3) .RE .sp Notify all sockets about process termination .RS 4 nn_term(3) .RE .sp Environment variables that influence nanomsg work .RS 4 nn_env(7) .RE .sp Following scalability protocols are provided by nanomsg: .sp One\-to\-one protocol .RS 4 nn_pair(7) .RE .sp Request/reply protocol .RS 4 nn_reqrep(7) .RE .sp Publish/subscribe protocol .RS 4 nn_pubsub(7) .RE .sp Survey protocol .RS 4 nn_survey(7) .RE .sp Pipeline protocol .RS 4 nn_pipeline(7) .RE .sp Message bus protocol .RS 4 nn_bus(7) .RE .sp Following transport mechanisms are provided by nanomsg: .sp In\-process transport .RS 4 nn_inproc(7) .RE .sp Inter\-process transport .RS 4 nn_ipc(7) .RE .sp TCP transport .RS 4 nn_tcp(7) .RE .sp WebSocket transport .RS 4 nn_ws(7) .RE .sp The following tool is installed with the library: .sp nanocat .RS 4 nanocat(1) .RE .SH "AUTHORS" .sp \c .MTO "garrett\(atdamore.org" "Garrett D\(cqAmore" .MTO "sustrik\(at250bpm.com" "Martin Sustrik" ""