summaryrefslogtreecommitdiff
path: root/ref/migrate
diff options
context:
space:
mode:
authorgdamore <gdamore@users.noreply.github.com>2024-12-31 21:44:58 +0000
committergdamore <gdamore@users.noreply.github.com>2024-12-31 21:44:58 +0000
commit03fabdf697d1fd19708d8c8a618c7ecb712ae64e (patch)
tree2f20308fe9cb50ee4f603b1ea2bfadd2f86635e0 /ref/migrate
parenta7cf6dfc11f7088311ac827864a2f41b8ea47084 (diff)
downloadnng-03fabdf697d1fd19708d8c8a618c7ecb712ae64e.tar.gz
nng-03fabdf697d1fd19708d8c8a618c7ecb712ae64e.tar.bz2
nng-03fabdf697d1fd19708d8c8a618c7ecb712ae64e.zip
deploy: b0874b1dad787c32093a3ff81311e2d638dc6538
Diffstat (limited to 'ref/migrate')
-rw-r--r--ref/migrate/nanomsg.html2
-rw-r--r--ref/migrate/nng1.html3
2 files changed, 4 insertions, 1 deletions
diff --git a/ref/migrate/nanomsg.html b/ref/migrate/nanomsg.html
index 96996b40..dda27f32 100644
--- a/ref/migrate/nanomsg.html
+++ b/ref/migrate/nanomsg.html
@@ -245,7 +245,7 @@ NNG approach to messages. Likewise there is no <code>struct nn_cmsghdr</code> eq
<tr><td><code>nn_strerror</code></td><td><a href="/api/errors.html#human-readable-error-message"><code>nng_strerror</code></a></td><td></td></tr>
<tr><td><code>nn_errno</code></td><td>None</td><td>Errors are returned directly rather than through <code>errno</code>.</td></tr>
<tr><td><code>nn_socket</code></td><td>Various</td><td>Use the appropriate protocol constructor, such as <code>nng_req0_open</code>.</td></tr>
-<tr><td><code>nn_close</code></td><td><code>nng_close</code></td><td></td></tr>
+<tr><td><code>nn_close</code></td><td><code>nng_socket_close</code></td><td></td></tr>
<tr><td><code>nn_bind</code></td><td><code>nng_listen</code>, <code>nng_listener_create</code></td><td>Allocating a listener with <code>nng_lister_create</code> and configuring it offers more capabilities.</td></tr>
<tr><td><code>nn_connect</code></td><td><code>nng_dial</code>, <code>nng_dialer_create</code></td><td>Allocating a dialer with <code>nng_dialer_create</code> and configuring it offers more capabilities.</td></tr>
<tr><td><code>nn_shutdown</code></td><td><code>nng_lister_close</code>, <code>nng_dialer_close</code></td><td></td></tr>
diff --git a/ref/migrate/nng1.html b/ref/migrate/nng1.html
index 28065353..032bed7d 100644
--- a/ref/migrate/nng1.html
+++ b/ref/migrate/nng1.html
@@ -229,6 +229,9 @@ See the <a href="nanomsg.html">Migrating From libnanomsg</a> chapter for details
<h2 id="library-initialization"><a class="header" href="#library-initialization">Library Initialization</a></h2>
<p>It is now required for applications to initialize the library explicitly before using it.
This is done using the <a href="/api/init.html#initialization"><code>nng_init</code></a> function.</p>
+<h2 id="socket-close-function-renamed"><a class="header" href="#socket-close-function-renamed">Socket Close Function Renamed</a></h2>
+<p>The <code>nng_close</code> function has been renamed to <a href="/api/sock.html#closing-a-socket"><code>nng_socket_close</code></a> to make it clearer that
+the object being closed is a socket.</p>
<h2 id="new-aio-error-code-nng_estopped"><a class="header" href="#new-aio-error-code-nng_estopped">New AIO Error Code NNG_ESTOPPED</a></h2>
<p>When an operation fails with <a href="/api/errors.html#NNG_ESTOPPED"><code>NNG_ESTOPPED</code></a>, it means that the associated [<code>nni_aio</code>] object has
been permanently stopped and must not be reused. Applications must watch for this error code, and