summaryrefslogtreecommitdiff
path: root/man/v1.7.3/nng_socket.7.html
diff options
context:
space:
mode:
authorStaysail Systems, Inc <info@staysail.tech>2024-03-01 07:04:14 -0800
committerGarrett D'Amore <garrett@damore.org>2024-03-01 07:07:37 -0800
commite4e646a6a9982ff932d83633157106a0b34975a2 (patch)
tree9ee71c33531a9592ba0c66ad97ceb10c42168519 /man/v1.7.3/nng_socket.7.html
parent66e28ffa9fe663908539550bf104716c5b4dc213 (diff)
downloadnng-e4e646a6a9982ff932d83633157106a0b34975a2.tar.gz
nng-e4e646a6a9982ff932d83633157106a0b34975a2.tar.bz2
nng-e4e646a6a9982ff932d83633157106a0b34975a2.zip
Manual page updates for v1.7.3
Diffstat (limited to 'man/v1.7.3/nng_socket.7.html')
-rw-r--r--man/v1.7.3/nng_socket.7.html129
1 files changed, 129 insertions, 0 deletions
diff --git a/man/v1.7.3/nng_socket.7.html b/man/v1.7.3/nng_socket.7.html
new file mode 100644
index 00000000..64f3386f
--- /dev/null
+++ b/man/v1.7.3/nng_socket.7.html
@@ -0,0 +1,129 @@
+---
+version: v1.7.3
+layout: manpage_v2
+title: nng_socket(7)
+---
+<h1>nng_socket(7)</h1>
+<div class="sect1">
+<h2 id="_name">NAME</h2>
+<div class="sectionbody">
+<div class="paragraph">
+<p>nng_socket - BSD Socket transport (experimental)</p>
+</div>
+</div>
+</div>
+<div class="sect1">
+<h2 id="_description">DESCRIPTION</h2>
+<div class="sectionbody">
+<div class="paragraph">
+<p>
+The <em>socket</em> transport supports communication between
+peers across arbitrary BSD sockets, such as those that are
+created with <a href="nng_socket_pair.3supp.html"><code>nng_socket_pair()</code></a>.</p>
+</div>
+<div class="paragraph">
+<p>This transport only supports <a href="nng_listener.5.html">listeners</a>, using <a href="nng_listener_create.3.html"><code>nng_listener_create()</code></a>.</p>
+</div>
+<div class="admonitionblock note">
+<table>
+<tr>
+<td class="icon">
+<i class="fa icon-note" title="Note"></i>
+</td>
+<td class="content">
+Attempts to create <a href="nng_dialer.5.html">dialers</a> using this transport will result in <code>NNG_ENOTSUP</code>.
+</td>
+</tr>
+</table>
+</div>
+<div class="paragraph">
+<p>The socket file descriptor is passed to the listener using the <code>NNG_OPT_SOCKET_FD</code> option (as an integer).
+Setting this option will cause the listener to create a <a href="nng_pipe.5.html">pipe</a> associated backed by the file descriptor.</p>
+</div>
+<div class="paragraph">
+<p>The protocol between peers using this transport is compatible with the protocol used for the
+<a href="nng_tcp.7.html">TCP</a> transport, but this is an implementation detail and subject to change without notice.</p>
+</div>
+<div class="admonitionblock note">
+<table>
+<tr>
+<td class="icon">
+<i class="fa icon-note" title="Note"></i>
+</td>
+<td class="content">
+This transport is <strong>experimental</strong>, and at present is only supported on POSIX platforms.
+</td>
+</tr>
+</table>
+</div>
+<div class="sect2">
+<h3 id="_registration">Registration</h3>
+<div class="paragraph">
+<p>No special action is necessary to register this transport.</p>
+</div>
+</div>
+<div class="sect2">
+<h3 id="_uri_format">URI Format</h3>
+<div class="paragraph">
+<p>
+This transport uses the URL <code>socket://</code>, without further qualification.</p>
+</div>
+</div>
+<div class="sect2">
+<h3 id="_socket_address">Socket Address</h3>
+<div class="paragraph">
+<p>The socket address will be of family <code>NNG_AF_UNSPEC</code>.
+There are no further socket details available.</p>
+</div>
+</div>
+<div class="sect2">
+<h3 id="_transport_options">Transport Options</h3>
+<div class="paragraph">
+<p>The following transport option is available:</p>
+</div>
+<div class="dlist">
+<dl>
+<dt class="hdlist1"><code>NNG_OPT_SOCKET_FD</code></dt>
+<dd>
+<p>(int) This is a write-only option, that may be set multiple times on a listener.
+Each time this is set, the listener will create a <a href="nng_pipe.5.html">pipe</a> backed by the given file
+descriptor passed as an argument.</p>
+</dd>
+</dl>
+</div>
+<div class="paragraph">
+<p>Additionally, the following options may be supported on pipes when the platform supports them:</p>
+</div>
+<div class="ulist">
+<ul>
+<li>
+<p><a href="nng_options.5.html#NNG_OPT_PEER_GID"><code>NNG_OPT_PEER_GID</code></a></p>
+</li>
+<li>
+<p><a href="nng_options.5.html#NNG_OPT_PEER_PID"><code>NNG_OPT_PEER_PID</code></a></p>
+</li>
+<li>
+<p><a href="nng_options.5.html#NNG_OPT_PEER_UID"><code>NNG_OPT_PEER_UID</code></a></p>
+</li>
+<li>
+<p><a href="nng_options.5.html#NNG_OPT_PEER_ZONEID"><code>NNG_OPT_PEER_ZONEID</code></a></p>
+</li>
+</ul>
+</div>
+</div>
+</div>
+</div>
+<div class="sect1">
+<h2 id="_see_also">SEE ALSO</h2>
+<div class="sectionbody">
+<div class="paragraph text-left">
+<p><a href="nng_socket_pair.3supp.html">nng_socket_pair(3)</a>,
+<a href="nng_dialer.5.html">nng_dialer(5)</a>,
+<a href="nng_listener.5.html">nng_listener(5)</a>,
+<a href="nng_options.5.html">nng_options(5)</a>,
+<a href="nng_pipe.5.html">nng_pipe(5)</a>,
+<a href="nng_sockaddr.5.html">nng_sockaddr(5)</a>,
+<a href="nng.7.html">nng(7)</a></p>
+</div>
+</div>
+</div>