#include <nanomsg/nn.h>
-
-void *nn_allocmsg(size_t size, int type);
+#include <nanomsg/nn.h>
+
+void *nn_allocmsg(size_t size, int type);
From bff4599ecd97ea28e1e2016fedf6cc1d53beda5c Mon Sep 17 00:00:00 2001
From: "Staysail Systems, Inc."
begin asynchronous I/O operation
test if asynchronous I/O is busy
cancel asynchronous I/O operation
receive message using context asynchronously
receive message using socket
send message using context asynchronously
send message using context
set context option
return message body
return message body length
remove data from end of message body
reallocate a message
reserve storage for a message
set pipe for message
recv message
receive a message
set socket option
get statistic Boolean value
get child statistic
get statistic value
get statistic numeric value
return message body
return capacity allocated for message body
remove data from end of message body
reallocate a message
reserve storage for message body
set pipe for message
begin asynchronous I/O operation
test if asynchronous I/O is busy
cancel asynchronous I/O operation
return output result
reap asynchronous I/O handle
return result of asynchronous operation
receive message using context asynchronously
receive a message using context
send message using context asynchronously
send a message using context
set context option
get statistic Boolean value
get child statistic
get statistic value
get statistic numeric value
#include <nanomsg/nn.h>
-
-void *nn_allocmsg(size_t size, int type);
+#include <nanomsg/nn.h>
+
+void *nn_allocmsg(size_t size, int type);
#include <nanomsg/nn.h>
-
-int nn_bind(int sock, const char *url)
+#include <nanomsg/nn.h>
+
+int nn_bind(int sock, const char *url)
#include <nanomsg/nn.h>
-
+#include <nanomsg/nn.h>
+
int nn_close(int sock);
#include <nanomsg/nn.h>
-
+#include <nanomsg/nn.h>
+
struct nn_cmsghdr {
- size_t cmsg_len;
+ size_t cmsg_len;
int cmsg_level;
int cmsg_type;
};
diff --git a/man/tip/nn_connect.3compat.html b/man/tip/nn_connect.3compat.html
index f26f22ea..673affaf 100644
--- a/man/tip/nn_connect.3compat.html
+++ b/man/tip/nn_connect.3compat.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nn_connect(3compat)
---
nn_connect(3compat)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nanomsg/nn.h>
-
-int nn_connect(int sock, const char *url)
+#include <nanomsg/nn.h>
+
+int nn_connect(int sock, const char *url)
diff --git a/man/tip/nn_device.3compat.html b/man/tip/nn_device.3compat.html
index 9e760c05..0f333eb5 100644
--- a/man/tip/nn_device.3compat.html
+++ b/man/tip/nn_device.3compat.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nn_device(3compat)
---
nn_device(3compat)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nanomsg/nn.h>
-
+#include <nanomsg/nn.h>
+
int nn_device(int sock1, int sock2);
diff --git a/man/tip/nn_errno.3compat.html b/man/tip/nn_errno.3compat.html
index 98d38740..cb13b3e8 100644
--- a/man/tip/nn_errno.3compat.html
+++ b/man/tip/nn_errno.3compat.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nn_errno(3compat)
---
nn_errno(3compat)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nanomsg/nn.h>
-
+#include <nanomsg/nn.h>
+
int nn_errno(void);
diff --git a/man/tip/nn_freemsg.3compat.html b/man/tip/nn_freemsg.3compat.html
index 7692fd38..11a3b7a4 100644
--- a/man/tip/nn_freemsg.3compat.html
+++ b/man/tip/nn_freemsg.3compat.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nn_freemsg(3compat)
---
nn_freemsg(3compat)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nanomsg/nn.h>
-
+#include <nanomsg/nn.h>
+
int nn_freemsg(void *msg);
diff --git a/man/tip/nn_get_statistic.3compat.html b/man/tip/nn_get_statistic.3compat.html
index e9479612..7cca59ba 100644
--- a/man/tip/nn_get_statistic.3compat.html
+++ b/man/tip/nn_get_statistic.3compat.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nn_get_statistic(3compat)
---
nn_get_statistic(3compat)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nanomsg/nn.h>
-
-uint64_t nn_get_statistic(int sock, int stat);
+#include <nanomsg/nn.h>
+
+uint64_t nn_get_statistic(int sock, int stat);
diff --git a/man/tip/nn_getsockopt.3compat.html b/man/tip/nn_getsockopt.3compat.html
index ffa090d8..09e40919 100644
--- a/man/tip/nn_getsockopt.3compat.html
+++ b/man/tip/nn_getsockopt.3compat.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nn_getsockopt(3compat)
---
nn_getsockopt(3compat)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nanomsg/nn.h>
-
-int nn_getsockopt(int sock, int level, int option, void *val, size_t *szp);
+#include <nanomsg/nn.h>
+
+int nn_getsockopt(int sock, int level, int option, void *val, size_t *szp);
diff --git a/man/tip/nn_poll.3compat.html b/man/tip/nn_poll.3compat.html
index bbe2873c..c420c6e2 100644
--- a/man/tip/nn_poll.3compat.html
+++ b/man/tip/nn_poll.3compat.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nn_poll(3compat)
---
nn_poll(3compat)
@@ -16,15 +17,15 @@ layout: manpage_v2
-#include <nanomsg/nn.h>
-
-#define NN_POLLIN 1
-#define NN_POLLOUT 2
-
+#include <nanomsg/nn.h>
+
+#define NN_POLLIN 1
+#define NN_POLLOUT 2
+
struct nn_pollfd {
int fd;
- uint16_t events;
- uint16_t revents;
+ uint16_t events;
+ uint16_t revents;
};
int nn_poll(struct nn_pollfd *pfds, int npfd, int timeout);
diff --git a/man/tip/nn_reallocmsg.3compat.html b/man/tip/nn_reallocmsg.3compat.html
index f7dad297..15f8c63c 100644
--- a/man/tip/nn_reallocmsg.3compat.html
+++ b/man/tip/nn_reallocmsg.3compat.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nn_reallocmsg(3compat)
---
nn_reallocmsg(3compat)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nanomsg/nn.h>
-
-void *nn_reallocmsg(void *old, size_t size);
+#include <nanomsg/nn.h>
+
+void *nn_reallocmsg(void *old, size_t size);
diff --git a/man/tip/nn_recv.3compat.html b/man/tip/nn_recv.3compat.html
index a1b20555..2bf6c3c3 100644
--- a/man/tip/nn_recv.3compat.html
+++ b/man/tip/nn_recv.3compat.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nn_recv(3compat)
---
nn_recv(3compat)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nanomsg/nn.h>
-
-int nn_recv(int sock, void *data, size_t size, int flags)
+#include <nanomsg/nn.h>
+
+int nn_recv(int sock, void *data, size_t size, int flags)
diff --git a/man/tip/nn_recvmsg.3compat.html b/man/tip/nn_recvmsg.3compat.html
index 307ef831..f0123069 100644
--- a/man/tip/nn_recvmsg.3compat.html
+++ b/man/tip/nn_recvmsg.3compat.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nn_recvmsg(3compat)
---
nn_recvmsg(3compat)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nanomsg/nn.h>
-
+#include <nanomsg/nn.h>
+
int nn_recvmsg(int sock, struct nn_msghdr *hdr, int flags);
@@ -57,14 +58,14 @@ following definition:
struct nn_iovec {
void * iov_base;
- size_t iov_len;
+ size_t iov_len;
};
struct nn_msghdr {
struct nn_iovec *msg_iov;
int msg_iovlen;
void * msg_control;
- size_t msg_controllen;
+ size_t msg_controllen;
};
diff --git a/man/tip/nn_send.3compat.html b/man/tip/nn_send.3compat.html
index a8168423..d5318029 100644
--- a/man/tip/nn_send.3compat.html
+++ b/man/tip/nn_send.3compat.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nn_send(3compat)
---
nn_send(3compat)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nanomsg/nn.h>
-
-int nn_send(int sock, const void *data, size_t size, int flags)
+#include <nanomsg/nn.h>
+
+int nn_send(int sock, const void *data, size_t size, int flags)
@@ -51,7 +52,7 @@ In this case, data points not to the message content itself, but instea
is a pointer to the pointer, an extra level of pointer indirection.
The message must have been previously allocated by
nn_allocmsg() or
-nn_recvmsg(), using the same `NN_MSG size.
+nn_recvmsg()`, using the same NN_MSG size.
In this case, the ownership of the message shall remain with
the caller, unless the function returns 0, indicating that the
function has taken responsibility for delivering or disposing of the
diff --git a/man/tip/nn_sendmsg.3compat.html b/man/tip/nn_sendmsg.3compat.html
index a8491da2..9e4e540a 100644
--- a/man/tip/nn_sendmsg.3compat.html
+++ b/man/tip/nn_sendmsg.3compat.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nn_sendmsg(3compat)
---
nn_sendmsg(3compat)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nanomsg/nn.h>
-
+#include <nanomsg/nn.h>
+
int nn_sendmsg(int sock, const struct nn_msghdr *hdr, int flags);
@@ -57,14 +58,14 @@ following definition:
struct nn_iovec {
void * iov_base;
- size_t iov_len;
+ size_t iov_len;
};
struct nn_msghdr {
struct nn_iovec *msg_iov;
int msg_iovlen;
void * msg_control;
- size_t msg_controllen;
+ size_t msg_controllen;
};
diff --git a/man/tip/nn_setsockopt.3compat.html b/man/tip/nn_setsockopt.3compat.html
index 4825187a..30856eb5 100644
--- a/man/tip/nn_setsockopt.3compat.html
+++ b/man/tip/nn_setsockopt.3compat.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nn_setsockopt(3compat)
---
nn_setsockopt(3compat)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nanomsg/nn.h>
-
-int nn_setsockopt(int sock, int level, int option, const void *val, size_t sz);
+#include <nanomsg/nn.h>
+
+int nn_setsockopt(int sock, int level, int option, const void *val, size_t sz);
diff --git a/man/tip/nn_shutdown.3compat.html b/man/tip/nn_shutdown.3compat.html
index 19c7ed7b..961b2ffe 100644
--- a/man/tip/nn_shutdown.3compat.html
+++ b/man/tip/nn_shutdown.3compat.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nn_shutdown(3compat)
---
nn_shutdown(3compat)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nanomsg/nn.h>
-
-int nn_shutdown(int sock, int ep)
+#include <nanomsg/nn.h>
+
+int nn_shutdown(int sock, int ep)
diff --git a/man/tip/nn_socket.3compat.html b/man/tip/nn_socket.3compat.html
index f00c962f..a3fcff69 100644
--- a/man/tip/nn_socket.3compat.html
+++ b/man/tip/nn_socket.3compat.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nn_socket(3compat)
---
nn_socket(3compat)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nanomsg/nn.h>
-
+#include <nanomsg/nn.h>
+
int nn_socket(int af, int proto);
diff --git a/man/tip/nn_strerror.3compat.html b/man/tip/nn_strerror.3compat.html
index 0bc21fb8..9839ede2 100644
--- a/man/tip/nn_strerror.3compat.html
+++ b/man/tip/nn_strerror.3compat.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nn_strerror(3compat)
---
nn_strerror(3compat)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nanomsg/nn.h>
-
+#include <nanomsg/nn.h>
+
const char *nn_strerror(int err);
diff --git a/man/tip/nn_term.3compat.html b/man/tip/nn_term.3compat.html
index 8309a440..f1249b81 100644
--- a/man/tip/nn_term.3compat.html
+++ b/man/tip/nn_term.3compat.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nn_term(3compat)
---
nn_term(3compat)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nanomsg/nn.h>
-
+#include <nanomsg/nn.h>
+
void nn_term(void);
diff --git a/man/tip/nng.7.html b/man/tip/nng.7.html
index b5d31283..310a85e2 100644
--- a/man/tip/nng.7.html
+++ b/man/tip/nng.7.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng(7)
---
nng(7)
@@ -15,7 +16,7 @@ layout: manpage_v2
SYNOPSIS
-cc ['flags'] 'files' -lnng ['libraries']
+cc ['flags'] 'files' -lnng ['libraries']
@@ -299,6 +300,7 @@ following the format specified in
RFC 3986,
including some schemes that are unique
to SP.
+
The URLs used in NNG are canonicalized as follows, mostly in
accordance with
RFC 3986 6.2.2:
@@ -307,32 +309,32 @@ accordance with
-
The URL is parsed into scheme, userinfo, host, port, path, query and
- fragment components. (Not all of these members are necessarily present.)
+fragment components. (Not all of these members are necessarily present.)
-
The scheme, hostname, and port if present, are converted to lower case.
-
Percent-encoded values for
- unreserved characters
- converted to their unencoded forms.
+unreserved characters
+converted to their unencoded forms.
-
Additionally URL percent-encoded values for characters in the path
- and with numeric values larger than 127 (i.e. not ASCII) are decoded.
+and with numeric values larger than 127 (i.e. not ASCII) are decoded.
-
The resulting path is checked for invalid UTF-8 sequences, consisting
- of surrogate pairs, illegal byte sequences, or overlong encodings.
- If this check fails, then the entire URL is considered invalid.
+of surrogate pairs, illegal byte sequences, or overlong encodings.
+If this check fails, then the entire URL is considered invalid.
-
Path segments consisting of . and .. are resolved as per
- RFC 3986 6.2.2.3.
+RFC 3986 6.2.2.3.
-
Further, empty path segments are removed, meaning that duplicate
- slash (/) separators are removed from the path.
+slash (/) separators are removed from the path.
diff --git a/man/tip/nng_aio.5.html b/man/tip/nng_aio.5.html
index 97d52a25..8b6be6e8 100644
--- a/man/tip/nng_aio.5.html
+++ b/man/tip/nng_aio.5.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_aio(5)
---
nng_aio(5)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nng/nng.h>
-
+#include <nng/nng.h>
+
typedef struct nng_aio nng_aio;
diff --git a/man/tip/nng_aio_abort.3.html b/man/tip/nng_aio_abort.3.html
index 9cc3defd..3a2e1bb7 100644
--- a/man/tip/nng_aio_abort.3.html
+++ b/man/tip/nng_aio_abort.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_aio_abort(3)
---
nng_aio_abort(3)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nng/nng.h>
-
+#include <nng/nng.h>
+
void nng_aio_abort(nng_aio *aio, int err);
diff --git a/man/tip/nng_aio_alloc.3.html b/man/tip/nng_aio_alloc.3.html
index b6bb44d4..7de57ec3 100644
--- a/man/tip/nng_aio_alloc.3.html
+++ b/man/tip/nng_aio_alloc.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_aio_alloc(3)
---
nng_aio_alloc(3)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nng/nng.h>
-
+#include <nng/nng.h>
+
int nng_aio_alloc(nng_aio **aiop, void (*callb)(void *), void *arg);
@@ -42,7 +43,23 @@ It will be called with the argument arg.
The callback callb must not perform any blocking operations, and
must complete its execution quickly. If callb does block, this can
-lead ultimately to an apparent "hang" or deadlock in the application.
+lead ultimately to an apparent "hang" or deadlock in the application.
+This also means you should avoid operations such as allocating new objects,
+which also means opening or closing sockets, dialers, and so forth.
+
+
| + + | ++If more complex or blocking work needs to be performed by callb, a separate +thread can be used, along with a condition variable +which can be signaled by the callback. |
#include <nng/nng.h>
-
+#include <nng/nng.h>
+
bool nng_aio_begin(nng_aio *aio);
nng_aio_busy - test if asynchronous I/O is busy
+#include <nng/nng.h>
+
+bool nng_aio_busy(nng_aio *aio);
+The nng_aio_busy() function returns true if the
+aio is currently busy performing an asynchronous I/O
+operation or is executing a completion callback.
If no operation has been started, or the operation has +been completed or canceled, and any callback has been +executed, then it returns false.
+This is the same test used internally by
+nng_aio_wait()
| + + | ++Care should be taken to ensure that the aio object is not +freed when using this function. The caller is responsible for +coordinating any use of this with any reuse of the aio. + | +
True if the aio is busy, false otherwise.
+None.
+#include <nng/nng.h>
-
+#include <nng/nng.h>
+
void nng_aio_cancel(nng_aio *aio);
#include <nng/nng.h>
-
-size_t nng_aio_count(nng_aio *aio);
+#include <nng/nng.h>
+
+size_t nng_aio_count(nng_aio *aio);
Some asynchronous operations do not provide meaningful data for this function; for example operations that establish connections do not -transfer user data (they may transfer protocol data though) -- in this case +transfer user data (they may transfer protocol data though) — in this case this function will generally return zero.
#include <nng/nng.h>
-
+#include <nng/nng.h>
+
typedef void (*nng_aio_cancelfn)(nng_aio *aio, void *arg, int err);
void nng_aio_defer(nng_aio *aio, nng_aio_cancelfn fn, void *arg);
diff --git a/man/tip/nng_aio_finish.3.html b/man/tip/nng_aio_finish.3.html
index ed6cc091..06ebe9ac 100644
--- a/man/tip/nng_aio_finish.3.html
+++ b/man/tip/nng_aio_finish.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_aio_finish(3)
---
nng_aio_finish(3)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nng/nng.h>
-
+#include <nng/nng.h>
+
void nng_aio_finish(nng_aio *aio, int err);
diff --git a/man/tip/nng_aio_free.3.html b/man/tip/nng_aio_free.3.html
index a0efceb5..f7731383 100644
--- a/man/tip/nng_aio_free.3.html
+++ b/man/tip/nng_aio_free.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_aio_free(3)
---
nng_aio_free(3)
@@ -16,9 +17,10 @@ layout: manpage_v2
-#include <nng/nng.h>
-
-void nng_aio_free(nng_aio *aio);
+#include <nng/nng.h>
+
+void nng_aio_free(nng_aio *aio);
+void nng_aio_reap(nng_aio *aio);
@@ -33,6 +35,23 @@ caller is blocked until the operation is completely canceled, to ensure
that it is safe to deallocate the handle and any associated resources.
(This is done by implicitly calling nng_aio_stop().)
+
+The nng_aio_reap() function is the same as nng_aio_free(), but does
+it’s work in a background thread.
+This can be useful to discard the aio object from within the callback for the aio.
+
+
+
+
+
+
+
+
+Once either of these functions are called, the aio object is invalid and must not be used again.
+
+
+
+
diff --git a/man/tip/nng_aio_get_input.3.html b/man/tip/nng_aio_get_input.3.html
index e75c3554..170b269b 100644
--- a/man/tip/nng_aio_get_input.3.html
+++ b/man/tip/nng_aio_get_input.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_aio_get_input(3)
---
nng_aio_get_input(3)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nng/nng.h>
-
+#include <nng/nng.h>
+
void *nng_aio_get_input(nng_aio *aio, unsigned int index);
diff --git a/man/tip/nng_aio_get_msg.3.html b/man/tip/nng_aio_get_msg.3.html
index 21ad688e..bbfa67a3 100644
--- a/man/tip/nng_aio_get_msg.3.html
+++ b/man/tip/nng_aio_get_msg.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_aio_get_msg(3)
---
nng_aio_get_msg(3)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nng/nng.h>
-
+#include <nng/nng.h>
+
nng_msg *nng_aio_get_msg(nng_aio *aio);
diff --git a/man/tip/nng_aio_get_output.3.html b/man/tip/nng_aio_get_output.3.html
index b473e967..9c0aa219 100644
--- a/man/tip/nng_aio_get_output.3.html
+++ b/man/tip/nng_aio_get_output.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_aio_get_output(3)
---
nng_aio_get_output(3)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nng/nng.h>
-
+#include <nng/nng.h>
+
void *nng_aio_get_output(nng_aio *aio, unsigned int index);
diff --git a/man/tip/nng_aio_result.3.html b/man/tip/nng_aio_result.3.html
index fb93f13f..03a024d9 100644
--- a/man/tip/nng_aio_result.3.html
+++ b/man/tip/nng_aio_result.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_aio_result(3)
---
nng_aio_result(3)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nng/nng.h>
-
+#include <nng/nng.h>
+
int nng_aio_result(nng_aio *aio);
diff --git a/man/tip/nng_aio_set_input.3.html b/man/tip/nng_aio_set_input.3.html
index 027b6bc2..12c82f08 100644
--- a/man/tip/nng_aio_set_input.3.html
+++ b/man/tip/nng_aio_set_input.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_aio_set_input(3)
---
nng_aio_set_input(3)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nng/nng.h>
-
+#include <nng/nng.h>
+
void nng_aio_set_input(nng_aio *aio, unsigned int index, void *param);
diff --git a/man/tip/nng_aio_set_iov.3.html b/man/tip/nng_aio_set_iov.3.html
index ba739b89..1185844d 100644
--- a/man/tip/nng_aio_set_iov.3.html
+++ b/man/tip/nng_aio_set_iov.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_aio_set_iov(3)
---
nng_aio_set_iov(3)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nng/nng.h>
-
+#include <nng/nng.h>
+
int nng_aio_set_iov(nng_aio *aio, unsigned int niov, nng_iov *iov);
@@ -37,7 +38,7 @@ structures, which have the following definition:
typedef struct nng_iov {
void * iov_buf;
- size_t iov_len;
+ size_t iov_len;
};
@@ -46,7 +47,7 @@ structures, which have the following definition:
The values pointed to by the iov_buf members are not copied by this function though.
-A maximum of eight (8) nng_iov members may be supplied.
+A maximum of four (4) nng_iov members may be supplied.
diff --git a/man/tip/nng_aio_set_msg.3.html b/man/tip/nng_aio_set_msg.3.html
index 3b4a02e2..08e5a1ff 100644
--- a/man/tip/nng_aio_set_msg.3.html
+++ b/man/tip/nng_aio_set_msg.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_aio_set_msg(3)
---
nng_aio_set_msg(3)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nng/nng.h>
-
+#include <nng/nng.h>
+
void nng_aio_set_msg(nng_aio *aio, nng_msg *msg);
diff --git a/man/tip/nng_aio_set_output.3.html b/man/tip/nng_aio_set_output.3.html
index 5b532394..57785005 100644
--- a/man/tip/nng_aio_set_output.3.html
+++ b/man/tip/nng_aio_set_output.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_aio_set_output(3)
---
nng_aio_set_output(3)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nng/nng.h>
-
+#include <nng/nng.h>
+
void nng_aio_set_output(nng_aio *aio, unsigned int index, void *result);
diff --git a/man/tip/nng_aio_set_timeout.3.html b/man/tip/nng_aio_set_timeout.3.html
index b237177b..00cd8cbb 100644
--- a/man/tip/nng_aio_set_timeout.3.html
+++ b/man/tip/nng_aio_set_timeout.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_aio_set_timeout(3)
---
nng_aio_set_timeout(3)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nng/nng.h>
-
+#include <nng/nng.h>
+
typedef int nng_duration;
void nng_aio_set_timeout(nng_aio *aio, nng_duration timeout);
@@ -37,7 +38,7 @@ The timeout is specified as a relative number of milliseconds.
If the timeout is NNG_DURATION_INFINITE, then no timeout is used.
-If the timeout is NNG_DURATION_DEFAULT, then a "default" or socket-specific
+If the timeout is NNG_DURATION_DEFAULT, then a "default" or socket-specific
timeout is used.
(This is frequently the same as NNG_DURATION_INFINITE.)
@@ -49,7 +50,7 @@ timeout is used.
As most operations involve some context switching, it is usually a good
-idea to allow at least a few tens of milliseconds before timing them out --
+idea to allow at least a few tens of milliseconds before timing them out —
a too small timeout might not allow the operation to properly begin before
giving up!
diff --git a/man/tip/nng_aio_stop.3.html b/man/tip/nng_aio_stop.3.html
index de8df3c4..10af9899 100644
--- a/man/tip/nng_aio_stop.3.html
+++ b/man/tip/nng_aio_stop.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_aio_stop(3)
---
nng_aio_stop(3)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nng/nng.h>
-
+#include <nng/nng.h>
+
void nng_aio_stop(nng_aio *aio);
diff --git a/man/tip/nng_aio_wait.3.html b/man/tip/nng_aio_wait.3.html
index 3759d4d6..ed547232 100644
--- a/man/tip/nng_aio_wait.3.html
+++ b/man/tip/nng_aio_wait.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_aio_wait(3)
---
nng_aio_wait(3)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nng/nng.h>
-
+#include <nng/nng.h>
+
void nng_aio_wait(nng_aio *aio);
@@ -33,7 +34,7 @@ If the operation has not been started, or has already
completed, then it returns immediately.
-If the a callback was set with aio when it was allocated, then this
+
If a callback was set with aio when it was allocated, then this
function will not be called until the callback has completed.
@@ -60,6 +61,7 @@ function will not be called until the callback has completed.
diff --git a/man/tip/nng_alloc.3.html b/man/tip/nng_alloc.3.html
index 67decfe3..d8657651 100644
--- a/man/tip/nng_alloc.3.html
+++ b/man/tip/nng_alloc.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_alloc(3)
---
nng_alloc(3)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-
-void *nng_alloc(size_t size);
+#include <nng/nng.h>
+
+void *nng_alloc(size_t size);
diff --git a/man/tip/nng_bus.7.html b/man/tip/nng_bus.7.html
index 78797a6f..2d1caaf5 100644
--- a/man/tip/nng_bus.7.html
+++ b/man/tip/nng_bus.7.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_bus(7)
---
nng_bus(7)
diff --git a/man/tip/nng_bus_open.3.html b/man/tip/nng_bus_open.3.html
index f66ba632..8d91cdf5 100644
--- a/man/tip/nng_bus_open.3.html
+++ b/man/tip/nng_bus_open.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_bus_open(3)
---
nng_bus_open(3)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/protocol/bus0/bus.h>
-
+#include <nng/nng.h>
+#include <nng/protocol/bus0/bus.h>
+
int nng_bus0_open(nng_socket *s);
int nng_bus0_open_raw(nng_socket *s);
diff --git a/man/tip/nng_clock.3supp.html b/man/tip/nng_clock.3supp.html
index b7351f56..cac058e3 100644
--- a/man/tip/nng_clock.3supp.html
+++ b/man/tip/nng_clock.3supp.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_clock(3supp)
---
nng_clock(3supp)
@@ -16,10 +17,10 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/util/platform.h>
-
-typedef uint64_t nng_time;
+#include <nng/nng.h>
+#include <nng/supplemental/util/platform.h>
+
+typedef uint64_t nng_time;
nng_time nng_clock(void);
diff --git a/man/tip/nng_close.3.html b/man/tip/nng_close.3.html
index 81901d70..a0bf7ecf 100644
--- a/man/tip/nng_close.3.html
+++ b/man/tip/nng_close.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_close(3)
---
nng_close(3)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nng/nng.h>
-
+#include <nng/nng.h>
+
int nng_close(nng_socket s);
diff --git a/man/tip/nng_compat.3compat.html b/man/tip/nng_compat.3compat.html
index 7e7c7112..6e4b8764 100644
--- a/man/tip/nng_compat.3compat.html
+++ b/man/tip/nng_compat.3compat.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_compat(3compat)
---
nng_compat(3compat)
@@ -16,19 +17,19 @@ layout: manpage_v2
-#include <nanomsg/nn.h>
-
-#include <nanomsg/bus.h>
-#include <nanomsg/pair.h>
-#include <nanomsg/pipeline.h>
-#include <nanomsg/pubsub.h>
-#include <nanomsg/reqrep.h>
-#include <nanomsg/survey.h>
-
-#include <nanomsg/inproc.h>
-#include <nanomsg/ipc.h>
-#include <nanomsg/tcp.h>
-#include <nanomsg/ws.h>
+#include <nanomsg/nn.h>
+
+#include <nanomsg/bus.h>
+#include <nanomsg/pair.h>
+#include <nanomsg/pipeline.h>
+#include <nanomsg/pubsub.h>
+#include <nanomsg/reqrep.h>
+#include <nanomsg/survey.h>
+
+#include <nanomsg/inproc.h>
+#include <nanomsg/ipc.h>
+#include <nanomsg/tcp.h>
+#include <nanomsg/ws.h>
@@ -98,7 +99,7 @@ While reasonable efforts have been made to provide for compatibility,
some things may behave differently, and some less common parts of the
libnanomsg 1.0 API are not supported at this time, including certain
options and the statistics API.
-See the [Caveats] section below.
+See the Caveats section below.
@@ -121,8 +122,8 @@ For example, instead of:
-#include <nanomsg/nn.h>
-#include <nanomsg/reqrep.h>
+#include <nanomsg/nn.h>
+#include <nanomsg/reqrep.h>
@@ -130,8 +131,8 @@ For example, instead of:
-#include <nng/compat/nanomsg/nn.h>
-#include <nng/compat/nanomsg/reqrep.h>
+#include <nng/compat/nanomsg/nn.h>
+#include <nng/compat/nanomsg/reqrep.h>
@@ -144,14 +145,11 @@ instead of libnn, just like any other NNG application.
The following functions are provided:
-
-ifndef::backend-pdf[]
-
-nn_socket()
+`nn_socket()`
create socket
@@ -159,7 +157,7 @@ instead of libnn, just like any other NNG application.
-nn_getsockopt()
+`nn_getsockopt()`
get socket option
@@ -167,7 +165,7 @@ instead of libnn, just like any other NNG application.
-nn_setsockopt()
+`nn_setsockopt()`
set socket option
@@ -175,7 +173,7 @@ instead of libnn, just like any other NNG application.
-nn_bind()
+`nn_bind()`
accept connections from remote peers
@@ -183,7 +181,7 @@ instead of libnn, just like any other NNG application.
-nn_connect()
+`nn_connect()`
connect to remote peer
@@ -191,7 +189,7 @@ instead of libnn, just like any other NNG application.
-nn_send()
+`nn_send()`
send data
@@ -199,7 +197,7 @@ instead of libnn, just like any other NNG application.
-nn_recv()
+`nn_recv()`
receive data
@@ -207,7 +205,7 @@ instead of libnn, just like any other NNG application.
-nn_shutdown()
+`nn_shutdown()`
shut down endpoint
@@ -215,7 +213,7 @@ instead of libnn, just like any other NNG application.
-nn_close()
+`nn_close()`
close socket
@@ -223,7 +221,7 @@ instead of libnn, just like any other NNG application.
-nn_poll()
+`nn_poll()`
poll sockets
@@ -231,7 +229,7 @@ instead of libnn, just like any other NNG application.
-nn_device()
+`nn_device()`
create forwarding device
@@ -239,7 +237,7 @@ instead of libnn, just like any other NNG application.
-nn_recvmsg()
+`nn_recvmsg()`
receive message
@@ -247,7 +245,7 @@ instead of libnn, just like any other NNG application.
-nn_sendmsg()
+`nn_sendmsg()`
send message
@@ -255,7 +253,7 @@ instead of libnn, just like any other NNG application.
-nn_cmsg()
+`nn_cmsg()`
message control data
@@ -263,7 +261,7 @@ instead of libnn, just like any other NNG application.
-nn_get_statistic()
+`nn_get_statistic()`
get statistic (stub)
@@ -271,7 +269,7 @@ instead of libnn, just like any other NNG application.
-nn_allocmsg()
+`nn_allocmsg()`
allocate message
@@ -279,7 +277,7 @@ instead of libnn, just like any other NNG application.
-nn_reallocmsg()
+`nn_reallocmsg()`
reallocate message
@@ -287,7 +285,7 @@ instead of libnn, just like any other NNG application.
-nn_freemsg()
+`nn_freemsg()`
free message
@@ -295,7 +293,7 @@ instead of libnn, just like any other NNG application.
-nn_errno()
+`nn_errno()`
return most recent error
@@ -303,7 +301,7 @@ instead of libnn, just like any other NNG application.
-nn_strerror()
+`nn_strerror()`
return message for error
@@ -311,111 +309,14 @@ instead of libnn, just like any other NNG application.
-nn_term()
+`nn_term()`
-terminate library
-endif::[]
-ifdef::backend-pdf[]
+terminate library
-
-
-
-
-
-
-
-
-create socket
-
-
-
-get socket option
-
-
-
-set socket option
-
-
-
-accept connections from remote peers
-
-
-
-connect to remote peer
-
-
-
-send data
-
-
-
-receive data
-
-
-
-shut down endpoint
-
-
-
-close socket
-
-
-
-poll sockets
-
-
-
-create forwarding device
-
-
-
-receive message
-
-
-
-send message
-
-
-
-message control data
-
-
-
-get statistic (stub)
-
-
-
-allocate message
-
-
-
-reallocate message
-
-
-
-free message
-
-
-
-return most recent error
-
-
-
-return message for error
-
-
-
-terminate library
-
-
-
-
-endif::[]
-
Caveats
@@ -426,69 +327,69 @@ ifdef::backend-pdf[]
-
Socket numbers can be quite large.
- The legacy libnanomsg attempted to reuse socket numbers, like
- file descriptors in UNIX systems.
- NNG avoids this to prevent accidental reuse or
- collision after a descriptor is closed.
- Consequently, socket numbers can become quite large, and should
- probably not be used for array indices.
+The legacy libnanomsg attempted to reuse socket numbers, like
+file descriptors in UNIX systems.
+NNG avoids this to prevent accidental reuse or
+collision after a descriptor is closed.
+Consequently, socket numbers can become quite large, and should
+probably not be used for array indices.
-
The following options (nn_getsockopt) are unsupported:
- NN_SNDPRIO, NN_RCVPRIO, NN_IPV4ONLY.
- The priority options may be supported in the future, when
- the underlying capability is present in NNG.
+NN_SNDPRIO, NN_RCVPRIO, NN_IPV4ONLY.
+The priority options may be supported in the future, when
+the underlying capability is present in NNG.
-
Access to statistics using this legacy API
- (nn_get_statistic()) is unsupported.
+(nn_get_statistic()) is unsupported.
-
Some transports can support longer URLs than legacy libnanomsg can.
- It is a good idea to use short pathnames in URLs if interoperability
- is a concern.
+It is a good idea to use short pathnames in URLs if interoperability
+is a concern.
-
Only absolute paths are supported in ipc:// URLs.
- For example, ipc:///tmp/mysocket is acceptable, but ipc://mysocket is not.
+For example, ipc:///tmp/mysocket is acceptable, but ipc://mysocket is not.
-
The WebSocket transport in this implementation (ws:// URLs)
- only supports BINARY frames.
+only supports BINARY frames.
-
Some newer transports are unusable from this mode.
- In particular, this legacy API offers no way to configure
- TLS or ZeroTier parameters that may be required for use.
+In particular, this legacy API offers no way to configure
+TLS or ZeroTier parameters that may be required for use.
-
ABI versioning of the compatibility layer is not supported,
- and the NN_VERSION_ macros are not present.
+and the NN_VERSION_ macros are not present.
-
Runtime symbol information is not implemented.
- Specifically, there is no nn_symbol() function yet.
- (This may be addressed later if there is a need.)
+Specifically, there is no nn_symbol() function yet.
+(This may be addressed later if there is a need.)
-
The TCP transport (tcp:// URLs) does not support specifying the local
- address or interface when binding. (This could be fixed in the future,
- but most likely this will be available only using the new API.)
+address or interface when binding. (This could be fixed in the future,
+but most likely this will be available only using the new API.)
-
The values of NN_RCVMAXSIZE are constrained.
- Specifically, values set larger than 2GB using the new API will be reported
- as unlimited (-1) in the new API, and the value 0 will disable any
- enforcement, just like -1.
- (There is no practical reason to ever want to limit the receive size to
- zero.)
+Specifically, values set larger than 2GB using the new API will be reported
+as unlimited (-1) in the new API, and the value 0 will disable any
+enforcement, just like -1.
+(There is no practical reason to ever want to limit the receive size to
+zero.)
-
This implementation counts buffers in terms of messages rather than bytes.
- As a result, the buffer sizes accessed with NN_SNDBUF and NN_RCVBUF are
- rounded up to a whole number of kilobytes, then divided by 1024, in order
- to approximate buffering assuming 1 KB messages.
- Few applications should need to adjust the default values.
+As a result, the buffer sizes accessed with NN_SNDBUF and NN_RCVBUF are
+rounded up to a whole number of kilobytes, then divided by 1024, in order
+to approximate buffering assuming 1 KB messages.
+Few applications should need to adjust the default values.
diff --git a/man/tip/nng_ctx.5.html b/man/tip/nng_ctx.5.html
index e601c848..a006c34b 100644
--- a/man/tip/nng_ctx.5.html
+++ b/man/tip/nng_ctx.5.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_ctx(5)
---
nng_ctx(5)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nng/nng.h>
-
+#include <nng/nng.h>
+
typedef struct nng_ctx_s nng_ctx
@@ -156,8 +157,7 @@ to the sender.
-
-struct echo_context {
+struct echo_context {
nng_ctx ctx;
nng_aio *aio;
enum { INIT, RECV, SEND } state;
@@ -171,22 +171,25 @@ to the sender.
switch (ec->state) {
case INIT:
ec->state = RECV;
- nng_ctx_recv(ec->ctx, ec->aio);
+ nng_ctx_recv(ec->ctx, ec->aio);
return;
case RECV:
- if (nng_aio_result(ec->aio) != 0) {
+ if (nng_aio_result(ec->aio) != 0) {
// ... handle error
- }
+
+ }
// We reuse the message on the ec->aio
- ec->state = SEND;
- nng_ctx_send(ec->ctx, ec->aio);
+
+ ec->state = SEND;
+ nng_ctx_send(ec->ctx, ec->aio);
return;
case SEND:
- if (nng_aio_result(ec->aio) != 0) {
+ if (nng_aio_result(ec->aio) != 0) {
// ... handle error
- }
+
+ }
ec->state = RECV;
- nng_ctx_recv(ec->ctx, ec->aio);
+ nng_ctx_recv(ec->ctx, ec->aio);
return;
}
}
@@ -201,8 +204,8 @@ or nng_listen().
-#define CONCURRENCY 1024
-
+#define CONCURRENCY 1024
+
echo_context ecs[CONCURRENCY];
void
@@ -210,11 +213,13 @@ or nng_listen().
{
for (int i = 0; i < CONCURRENCY; i++) {
// error checks elided for clarity
- nng_ctx_open(ec[i].ctx, rep_socket)
- nng_aio_alloc(ec[i].aio, echo, &e[i]);
+
+ nng_ctx_open(ec[i].ctx, rep_socket)
+ nng_aio_alloc(ec[i].aio, echo, &e[i]);
ec[i].state = INIT;
- echo(&ec[i]); // start it running
- }
+ echo(&ec[i]); // start it running
+
+ }
}
@@ -227,11 +232,13 @@ or nng_listen().
libnng(3),
nng_ctx_close(3),
nng_ctx_open(3),
-nng_ctx_getopt(3),
+nng_ctx_get(3),
nng_ctx_id(3),
nng_ctx_recv(3),
+nng_ctx_recvmsg(3),
nng_ctx_send(3),
-nng_ctx_setopt(3),
+nng_ctx_sendmsg(3),
+nng_ctx_set(3),
nng_dialer(5),
nng_listener(5),
nng_socket(5),
diff --git a/man/tip/nng_ctx_close.3.html b/man/tip/nng_ctx_close.3.html
index f024ed61..90637944 100644
--- a/man/tip/nng_ctx_close.3.html
+++ b/man/tip/nng_ctx_close.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_ctx_close(3)
---
nng_ctx_close(3)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nng/nng.h>
-
+#include <nng/nng.h>
+
int nng_ctx_close(nng_ctx ctx);
diff --git a/man/tip/nng_ctx_get.3.html b/man/tip/nng_ctx_get.3.html
index e0575644..3ff491a9 100644
--- a/man/tip/nng_ctx_get.3.html
+++ b/man/tip/nng_ctx_get.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_ctx_get(3)
---
nng_ctx_get(3)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-
-int nng_ctx_get(nng_ctx ctx, const char *opt, void *val, size_t *valszp);
+#include <nng/nng.h>
+
+int nng_ctx_get(nng_ctx ctx, const char *opt, void *val, size_t *valszp);
int nng_ctx_get_bool(nng_ctx ctx, const char *opt, bool *bvalp);
@@ -26,11 +27,11 @@ layout: manpage_v2
int nng_ctx_get_ms(nng_ctx ctx, const char *opt, nng_duration *durp);
-int nng_ctx_get_size(nng_ctx ctx, const char *opt, size_t *zp);
+int nng_ctx_get_size(nng_ctx ctx, const char *opt, size_t *zp);
int nng_ctx_get_string(nng_ctx ctx, const char *opt, char **strp);
-int nng_ctx_get_uint64(nng_ctx ctx, const char *opt, uint64_t *u64p);
+int nng_ctx_get_uint64(nng_ctx ctx, const char *opt, uint64_t *u64p);
diff --git a/man/tip/nng_ctx_getopt.3.html b/man/tip/nng_ctx_getopt.3.html
index 8cfe15e6..f721aa45 100644
--- a/man/tip/nng_ctx_getopt.3.html
+++ b/man/tip/nng_ctx_getopt.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_ctx_getopt(3)
---
nng_ctx_getopt(3)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-
-int nng_ctx_getopt(nng_ctx ctx, const char *opt, void *val, size_t *valszp);
+#include <nng/nng.h>
+
+int nng_ctx_getopt(nng_ctx ctx, const char *opt, void *val, size_t *valszp);
int nng_ctx_getopt_bool(nng_ctx ctx, const char *opt, bool *bvalp);
@@ -26,11 +27,11 @@ layout: manpage_v2
int nng_ctx_getopt_ms(nng_ctx ctx, const char *opt, nng_duration *durp);
-int nng_ctx_getopt_size(nng_ctx ctx, const char *opt, size_t *zp);
+int nng_ctx_getopt_size(nng_ctx ctx, const char *opt, size_t *zp);
int nng_ctx_getopt_string(nng_ctx ctx, const char *opt, char **strp);
-int nng_ctx_getopt_uint64(nng_ctx ctx, const char *opt, uint64_t *u64p);
+int nng_ctx_getopt_uint64(nng_ctx ctx, const char *opt, uint64_t *u64p);
@@ -38,14 +39,15 @@ layout: manpage_v2
DESCRIPTION
-
+
-
+
These functions are deprecated. Please see nng_ctx_get.
+They may not be present if the library was built with NNG_ELIDE_DEPRECATED.
diff --git a/man/tip/nng_ctx_id.3.html b/man/tip/nng_ctx_id.3.html
index f6948f57..ecf1f58c 100644
--- a/man/tip/nng_ctx_id.3.html
+++ b/man/tip/nng_ctx_id.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_ctx_id(3)
---
nng_ctx_id(3)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nng/nng.h>
-
+#include <nng/nng.h>
+
int nng_ctx_id(nng_ctx c);
diff --git a/man/tip/nng_ctx_open.3.html b/man/tip/nng_ctx_open.3.html
index 8a81e32d..5b3e8cc4 100644
--- a/man/tip/nng_ctx_open.3.html
+++ b/man/tip/nng_ctx_open.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_ctx_open(3)
---
nng_ctx_open(3)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nng/nng.h>
-
+#include <nng/nng.h>
+
int nng_ctx_open(nng_ctx *ctxp, nng_socket s);
diff --git a/man/tip/nng_ctx_recv.3.html b/man/tip/nng_ctx_recv.3.html
index 3e01d810..79ff4855 100644
--- a/man/tip/nng_ctx_recv.3.html
+++ b/man/tip/nng_ctx_recv.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_ctx_recv(3)
---
nng_ctx_recv(3)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nng/nng.h>
-
+#include <nng/nng.h>
+
void nng_ctx_recv(nng_ctx ctx, nng_aio *aio);
diff --git a/man/tip/nng_ctx_recvmsg.3.html b/man/tip/nng_ctx_recvmsg.3.html
new file mode 100644
index 00000000..1a86f10f
--- /dev/null
+++ b/man/tip/nng_ctx_recvmsg.3.html
@@ -0,0 +1,148 @@
+---
+version: tip
+layout: manpage_v2
+title: nng_ctx_recvmsg(3)
+---
+nng_ctx_recvmsg(3)
+
+NAME
+
+
+nng_ctx_recvmsg - receive message using socket
+
+
+
+
+SYNOPSIS
+
+
+
+#include <nng/nng.h>
+
+int nng_ctx_recvmsg(nng_ctx ctx, nng_msg **msgp, int flags);
+
+
+
+
+
+DESCRIPTION
+
+
+The nng_ctx_recvmsg() receives a message on context ctx, storing the
+received message at the location pointed to by msgp.
+
+
+The flags may contain the following value:
+
+
+
+NNG_FLAG_NONBLOCK
+-
+
The function returns immediately, even if no message is available.
+Without this flag, the function will wait until a message is receivable
+on the context ctx, or any configured timer expires.
+
+
+
+
+
+
+
+
+
+
+The semantics of what receiving a message means vary from protocol to
+protocol, so examination of the protocol documentation is encouraged.
+
+
+
+
+
+
+
+RETURN VALUES
+
+
+This function returns 0 on success, and non-zero otherwise.
+
+
+
+
+ERRORS
+
+
+
+
+
+NNG_EAGAIN
+
+
+The operation would block, but NNG_FLAG_NONBLOCK was specified.
+
+
+
+
+NNG_ECLOSED
+
+
+The context or socket is not open.
+
+
+
+
+NNG_EINVAL
+
+
+An invalid set of flags was specified.
+
+
+
+
+NNG_ENOMEM
+
+
+Insufficient memory is available.
+
+
+
+
+NNG_ENOTSUP
+
+
+The protocol does not support receiving.
+
+
+
+
+NNG_ESTATE
+
+
+The context cannot receive data in this state.
+
+
+
+
+NNG_ETIMEDOUT
+
+
+The operation timed out.
+
+
+
+
+
+
+
+SEE ALSO
+
+
+
+
diff --git a/man/tip/nng_ctx_send.3.html b/man/tip/nng_ctx_send.3.html
index 5b64e811..647eec6c 100644
--- a/man/tip/nng_ctx_send.3.html
+++ b/man/tip/nng_ctx_send.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_ctx_send(3)
---
nng_ctx_send(3)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nng/nng.h>
-
+#include <nng/nng.h>
+
void nng_ctx_send(nng_ctx ctx, nng_aio *aio);
diff --git a/man/tip/nng_ctx_sendmsg.3.html b/man/tip/nng_ctx_sendmsg.3.html
new file mode 100644
index 00000000..fad9ad25
--- /dev/null
+++ b/man/tip/nng_ctx_sendmsg.3.html
@@ -0,0 +1,187 @@
+---
+version: tip
+layout: manpage_v2
+title: nng_ctx_sendmsg(3)
+---
+nng_ctx_sendmsg(3)
+
+NAME
+
+
+nng_ctx_sendmsg - send message using context
+
+
+
+
+SYNOPSIS
+
+
+
+#include <nng/nng.h>
+
+int nng_ctx_sendmsg(nng_ctx c, nng_msg *msg, int flags);
+
+
+
+
+
+DESCRIPTION
+
+
+The nng_ctx_sendmsg() sends message msg using the context ctx.
+
+
+If the function returns zero, indicating it has accepted the message for
+delivery, then the msg is owned by the socket s, and the caller
+must not make any further use of it.
+The socket will free the message when it is finished.
+
+
+If the function returns non-zero, then it is the caller’s responsibility
+to dispose of the msg, which may include freeing it, sending it to
+another socket, or simply trying again later.
+
+
+
+
+
+
+
+
+The semantics of what sending a message means vary from protocol to
+protocol, so examination of the protocol documentation is encouraged.
+
+
+
+
+
+The flags may contain the following value:
+
+
+
+NNG_FLAG_NONBLOCK
+-
+
The function returns immediately, regardless of whether
+the context is able to accept the data or not.
+If the context is unable to accept the data (such as if backpressure exists
+because the peers are consuming messages too slowly, or no peer is present),
+then the function will return with NNG_EAGAIN.
+If this flag is not specified, then the function will block if such a
+condition exists.
+
+
+
+
+
+
+
+
+
+
+Regardless of the presence or absence of NNG_FLAG_NONBLOCK, there may
+be queues between the sender and the receiver.
+Furthermore, there is no guarantee that the message has actually been delivered.
+Finally, with some protocols, the semantic is implicitly NNG_FLAG_NONBLOCK.
+
+
+
+
+
+
+
+RETURN VALUES
+
+
+This function returns 0 on success, and non-zero otherwise.
+
+
+
+
+ERRORS
+
+
+
+
+
+NNG_EAGAIN
+
+
+The operation would block, but NNG_FLAG_NONBLOCK was specified.
+
+
+
+
+NNG_ECLOSED
+
+
+The context or socket is not open.
+
+
+
+
+NNG_EINVAL
+
+
+An invalid set of flags was specified.
+
+
+
+
+NNG_EMSGSIZE
+
+
+The value of size is too large.
+
+
+
+
+NNG_ENOMEM
+
+
+Insufficient memory is available.
+
+
+
+
+NNG_ENOTSUP
+
+
+The protocol does not support sending.
+
+
+
+
+NNG_ESTATE
+
+
+The context cannot send data in this state.
+
+
+
+
+NNG_ETIMEDOUT
+
+
+The operation timed out.
+
+
+
+
+
+
+
+SEE ALSO
+
+
+
+
diff --git a/man/tip/nng_ctx_set.3.html b/man/tip/nng_ctx_set.3.html
index 3f1adae7..98db4b3b 100644
--- a/man/tip/nng_ctx_set.3.html
+++ b/man/tip/nng_ctx_set.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_ctx_set(3)
---
nng_ctx_set(3)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-
-int nng_ctx_set(nng_ctx ctx, const char *opt, const void *val, size_t valsz);
+#include <nng/nng.h>
+
+int nng_ctx_set(nng_ctx ctx, const char *opt, const void *val, size_t valsz);
int nng_ctx_set_bool(nng_ctx ctx, const char *opt, int bval);
@@ -26,11 +27,11 @@ layout: manpage_v2
int nng_ctx_set_ms(nng_ctx ctx, const char *opt, nng_duration dur);
-int nng_ctx_set_size(nng_ctx ctx, const char *opt, size_t z);
+int nng_ctx_set_size(nng_ctx ctx, const char *opt, size_t z);
int nng_ctx_set_string(nng_ctx ctx, const char *opt, const char *str);
-int nng_ctx_set_uint64(nng_ctx ctx, const char *opt, uint64_t u64);
+int nng_ctx_set_uint64(nng_ctx ctx, const char *opt, uint64_t u64);
diff --git a/man/tip/nng_ctx_setopt.3.html b/man/tip/nng_ctx_setopt.3.html
index 04d1163f..bbe7e3b2 100644
--- a/man/tip/nng_ctx_setopt.3.html
+++ b/man/tip/nng_ctx_setopt.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_ctx_setopt(3)
---
nng_ctx_setopt(3)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-
-int nng_ctx_setopt(nng_ctx ctx, const char *opt, const void *val, size_t valsz);
+#include <nng/nng.h>
+
+int nng_ctx_setopt(nng_ctx ctx, const char *opt, const void *val, size_t valsz);
int nng_ctx_setopt_bool(nng_ctx ctx, const char *opt, int bval);
@@ -26,11 +27,11 @@ layout: manpage_v2
int nng_ctx_setopt_ms(nng_ctx ctx, const char *opt, nng_duration dur);
-int nng_ctx_setopt_size(nng_ctx ctx, const char *opt, size_t z);
+int nng_ctx_setopt_size(nng_ctx ctx, const char *opt, size_t z);
int nng_ctx_setopt_string(nng_ctx ctx, const char *opt, const char *str);
-int nng_ctx_setopt_uint64(nng_ctx ctx, const char *opt, uint64_t u64);
+int nng_ctx_setopt_uint64(nng_ctx ctx, const char *opt, uint64_t u64);
@@ -38,14 +39,15 @@ layout: manpage_v2
DESCRIPTION
-
+
-
+
These functions are deprecated. Please see nng_ctx_set.
+They may not be present if the library was built with NNG_ELIDE_DEPRECATED.
diff --git a/man/tip/nng_cv_alloc.3supp.html b/man/tip/nng_cv_alloc.3supp.html
index 69f608a5..c30305d4 100644
--- a/man/tip/nng_cv_alloc.3supp.html
+++ b/man/tip/nng_cv_alloc.3supp.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_cv_alloc(3supp)
---
nng_cv_alloc(3supp)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/util/platform.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/util/platform.h>
+
typedef struct nng_cv nng_cv;
int nng_cv_alloc(nng_cv **cvp, nng_mtx *mtx);
diff --git a/man/tip/nng_cv_free.3supp.html b/man/tip/nng_cv_free.3supp.html
index aca2ce03..16df21de 100644
--- a/man/tip/nng_cv_free.3supp.html
+++ b/man/tip/nng_cv_free.3supp.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_cv_free(3supp)
---
nng_cv_free(3supp)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/util/platform.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/util/platform.h>
+
void nng_cv_free(nng_cv *cv);
diff --git a/man/tip/nng_cv_until.3supp.html b/man/tip/nng_cv_until.3supp.html
index 1c3848ea..547fa523 100644
--- a/man/tip/nng_cv_until.3supp.html
+++ b/man/tip/nng_cv_until.3supp.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_cv_until(3supp)
---
nng_cv_until(3supp)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/util/platform.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/util/platform.h>
+
int nng_cv_until(nng_cv *cv, nng_time when);
@@ -66,25 +67,28 @@ tests for true.
Example 1: Waiting for the condition
-
- nng_mtx_lock(m); // assume cv was allocated using m
- while (!condition_true) {
- if (nng_cv_wait(cv) == NNG_ETIMEDOUT) {
- printf("Time out reached!\n");
+ expire = nng_clock() + 1000; // 1 second in the future
+
+ nng_mtx_lock(m); // assume cv was allocated using m
+
+ while (!condition_true) {
+ if (nng_cv_until(cv, expire) == NNG_ETIMEDOUT) {
+ printf("Time out reached!\n");
break;
}
}
// condition_true is true
- nng_mtx_unlock(m);
+
+ nng_mtx_unlock(m);
Example 2: Signaling the condition
- nng_mtx_lock(m);
+ nng_mtx_lock(m);
condition_true = true;
- nng_cv_wake(cv);
- nng_mtx_unlock(m);
+ nng_cv_wake(cv);
+ nng_mtx_unlock(m);
diff --git a/man/tip/nng_cv_wait.3supp.html b/man/tip/nng_cv_wait.3supp.html
index 3692861d..3370395c 100644
--- a/man/tip/nng_cv_wait.3supp.html
+++ b/man/tip/nng_cv_wait.3supp.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_cv_wait(3supp)
---
nng_cv_wait(3supp)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/util/platform.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/util/platform.h>
+
void nng_cv_wait(nng_cv *cv);
@@ -65,22 +66,23 @@ tests for true.
Example 1: Waiting for the condition
-
- nng_mtx_lock(m); // assume cv was allocated using m
- while (!condition_true) {
- nng_cv_wait(cv);
+ nng_mtx_lock(m); // assume cv was allocated using m
+
+ while (!condition_true) {
+ nng_cv_wait(cv);
}
// condition_true is true
- nng_mtx_unlock(m);
+
+ nng_mtx_unlock(m);
Example 2: Signaling the condition
- nng_mtx_lock(m);
+ nng_mtx_lock(m);
condition_true = true;
- nng_cv_wake(cv);
- nng_mtx_unlock(m);
+ nng_cv_wake(cv);
+ nng_mtx_unlock(m);
diff --git a/man/tip/nng_cv_wake.3supp.html b/man/tip/nng_cv_wake.3supp.html
index 97d04f8a..bd84f71b 100644
--- a/man/tip/nng_cv_wake.3supp.html
+++ b/man/tip/nng_cv_wake.3supp.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_cv_wake(3supp)
---
nng_cv_wake(3supp)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/util/platform.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/util/platform.h>
+
void nng_cv_wake(nng_cv *cv);
diff --git a/man/tip/nng_cv_wake1.3supp.html b/man/tip/nng_cv_wake1.3supp.html
index 5178d8da..b94dff5a 100644
--- a/man/tip/nng_cv_wake1.3supp.html
+++ b/man/tip/nng_cv_wake1.3supp.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_cv_wake1(3supp)
---
nng_cv_wake1(3supp)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/util/platform.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/util/platform.h>
+
void nng_cv_wake1(nng_cv *cv);
diff --git a/man/tip/nng_device.3.html b/man/tip/nng_device.3.html
index d74722be..5b10e2ad 100644
--- a/man/tip/nng_device.3.html
+++ b/man/tip/nng_device.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_device(3)
---
nng_device(3)
@@ -16,9 +17,11 @@ layout: manpage_v2
-#include <nng/nng.h>
-
-int nng_device(nng_socket s1, nng_socket s2);
+#include <nng/nng.h>
+
+int nng_device(nng_socket s1, nng_socket s2);
+
+void nng_device_aio(nng_aio *aio, nng_socket s1, nng_socket s2);
@@ -27,11 +30,11 @@ layout: manpage_v2
DESCRIPTION
-The nng_device() function forwards messages received from one
+
The nng_device() and nng_device_aio() functions forward messages received from one
socket s1 to another socket s2, and vice versa.
-This function is used to create forwarders, which can be used to create
+
These functions are used to create forwarders, which can be used to create
complex network topologies to provide for improved horizontal scalability,
reliability, and isolation.
@@ -43,7 +46,9 @@ such as nng_req0_open_raw().
The nng_device() function does not return until one of the sockets
-is closed.
+is closed.
+The nng_device_aio() function returns immediately, and operates completely in
+the background.
Reflectors
@@ -56,7 +61,7 @@ a protocol that is bidirectional and can peer with itself (such as
bus.)
In this case the device acts as a reflector or loop-back device,
where messages received from the valid socket are merely returned
-back to the sender.
+to the sender.
@@ -88,6 +93,10 @@ This allows replies to be
returned to requesters, and responses to be routed back to surveyors.
+The caller of these functions is required to close the sockets when the
+device is stopped.
+
+
Additionally, some protocols have a maximum time-to-live to protect
against forwarding loops and especially amplification loops.
In these cases, the default limit (usually 8), ensures that messages will
@@ -118,7 +127,7 @@ to network performance.
-Devices (forwarders and reflectors) act in best effort delivery mode only.
+Devices (forwarders and reflectors) act in best-effort delivery mode only.
If a message is received from one socket that cannot be accepted by the
other (due to backpressure or other issues), then the message is discarded.
diff --git a/man/tip/nng_dial.3.html b/man/tip/nng_dial.3.html
index 9ec1eb1c..7e0a7efe 100644
--- a/man/tip/nng_dial.3.html
+++ b/man/tip/nng_dial.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_dial(3)
---
nng_dial(3)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nng/nng.h>
-
+#include <nng/nng.h>
+
int nng_dial(nng_socket s, const char *url, nng_dialer *dp, int flags);
diff --git a/man/tip/nng_dialer.5.html b/man/tip/nng_dialer.5.html
index 3947fd2a..ee62d7a2 100644
--- a/man/tip/nng_dialer.5.html
+++ b/man/tip/nng_dialer.5.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_dialer(5)
---
nng_dialer(5)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nng/nng.h>
-
+#include <nng/nng.h>
+
typedef struct nng_dialer_s nng_dialer;
diff --git a/man/tip/nng_dialer_close.3.html b/man/tip/nng_dialer_close.3.html
index d14adc99..858dac60 100644
--- a/man/tip/nng_dialer_close.3.html
+++ b/man/tip/nng_dialer_close.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_dialer_close(3)
---
nng_dialer_close(3)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nng/nng.h>
-
+#include <nng/nng.h>
+
int nng_dialer_close(nng_dialer d);
diff --git a/man/tip/nng_dialer_create.3.html b/man/tip/nng_dialer_create.3.html
index 5a7e3daa..d3a43ec5 100644
--- a/man/tip/nng_dialer_create.3.html
+++ b/man/tip/nng_dialer_create.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_dialer_create(3)
---
nng_dialer_create(3)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nng/nng.h>
-
+#include <nng/nng.h>
+
int nng_dialer_create(nng_dialer *dialerp, nng_socket s, const char *url);
diff --git a/man/tip/nng_dialer_get.3.html b/man/tip/nng_dialer_get.3.html
index a8ab0ab1..e89c43a7 100644
--- a/man/tip/nng_dialer_get.3.html
+++ b/man/tip/nng_dialer_get.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_dialer_get(3)
---
nng_dialer_get(3)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-
-int nng_dialer_get(nng_dialer d, const char *opt, void *val, size_t *valszp);
+#include <nng/nng.h>
+
+int nng_dialer_get(nng_dialer d, const char *opt, void *val, size_t *valszp);
int nng_dialer_get_bool(nng_dialer d, const char *opt, bool *bvalp);
@@ -28,13 +29,13 @@ layout: manpage_v2
int nng_dialer_get_ptr(nng_dialer d, const char *opt, void **ptr);
-int nng_dialer_get_size(nng_dialer d, const char *opt, size_t *zp);
+int nng_dialer_get_size(nng_dialer d, const char *opt, size_t *zp);
int nng_dialer_get_addr(nng_dialer d, const char *opt, nng_sockaddr *sap);
int nng_dialer_get_string(nng_dialer d, const char *opt, char **strp);
-int nng_dialer_get_uint64(nng_dialer d, const char *opt, uint64_t *u64p);
+int nng_dialer_get_uint64(nng_dialer d, const char *opt, uint64_t *u64p);
@@ -49,8 +50,7 @@ The actual options that may be retrieved in this way
vary, and many are documented in nng_options(5).
-Additionally some transport-specific options and protocol-specific options
-are documented with the transports and protocols themselves.
+Additionally some transport-specific options are documented with the transports themselves.
Forms
diff --git a/man/tip/nng_dialer_getopt.3.html b/man/tip/nng_dialer_getopt.3.html
index 7b4e573c..18ec4fb9 100644
--- a/man/tip/nng_dialer_getopt.3.html
+++ b/man/tip/nng_dialer_getopt.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_dialer_getopt(3)
---
nng_dialer_getopt(3)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-
-int nng_dialer_getopt(nng_dialer d, const char *opt, void *val, size_t *valszp);
+#include <nng/nng.h>
+
+int nng_dialer_getopt(nng_dialer d, const char *opt, void *val, size_t *valszp);
int nng_dialer_getopt_bool(nng_dialer d, const char *opt, bool *bvalp);
@@ -28,13 +29,13 @@ layout: manpage_v2
int nng_dialer_getopt_ptr(nng_dialer d, const char *opt, void **ptr);
-int nng_dialer_getopt_size(nng_dialer d, const char *opt, size_t *zp);
+int nng_dialer_getopt_size(nng_dialer d, const char *opt, size_t *zp);
int nng_dialer_getopt_sockaddr(nng_dialer d, const char *opt, nng_sockaddr *sap);
int nng_dialer_getopt_string(nng_dialer d, const char *opt, char **strp);
-int nng_dialer_getopt_uint64(nng_dialer d, const char *opt, uint64_t *u64p);
+int nng_dialer_getopt_uint64(nng_dialer d, const char *opt, uint64_t *u64p);
@@ -42,14 +43,15 @@ layout: manpage_v2
DESCRIPTION
-
+
-
+
These functions are deprecated. Please see nng_dialer_get.
+They may not be present if the library was built with NNG_ELIDE_DEPRECATED.
@@ -61,8 +63,7 @@ The actual options that may be retrieved in this way
vary, and many are documented in nng_options(5).
-Additionally some transport-specific options and protocol-specific options
-are documented with the transports and protocols themselves.
+Additionally some transport-specific options are documented with the transports themselves.
Forms
diff --git a/man/tip/nng_dialer_id.3.html b/man/tip/nng_dialer_id.3.html
index ce0ec568..1b44db8b 100644
--- a/man/tip/nng_dialer_id.3.html
+++ b/man/tip/nng_dialer_id.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_dialer_id(3)
---
nng_dialer_id(3)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nng/nng.h>
-
+#include <nng/nng.h>
+
int nng_dialer_id(nng_dialer d);
diff --git a/man/tip/nng_dialer_set.3.html b/man/tip/nng_dialer_set.3.html
index c2b80327..5d57aaab 100644
--- a/man/tip/nng_dialer_set.3.html
+++ b/man/tip/nng_dialer_set.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_dialer_set(3)
---
nng_dialer_set(3)
@@ -16,10 +17,10 @@ layout: manpage_v2
-#include <nng/nng.h>
-
-int nng_dialer_set(nng_dialer d, const char *opt, const void *val,
- size_t valsz);
+#include <nng/nng.h>
+
+int nng_dialer_set(nng_dialer d, const char *opt, const void *val,
+ size_t valsz);
int nng_dialer_set_bool(nng_dialer d, const char *opt, bool bval);
@@ -29,11 +30,11 @@ layout: manpage_v2
int nng_dialer_set_ptr(nng_dialer d, const char *opt, void *ptr);
-int nng_dialer_set_size(nng_dialer d, const char *opt, size_t z);
+int nng_dialer_set_size(nng_dialer d, const char *opt, size_t z);
int nng_dialer_set_string(nng_dialer d, const char *opt, const char *str);
-int nng_dialer_set_uint64(nng_dialer d, const char *opt, uint64_t u64);
+int nng_dialer_set_uint64(nng_dialer d, const char *opt, uint64_t u64);
@@ -48,8 +49,7 @@ The actual options that may be configured in this way
vary, and many are documented in nng_options(5).
-Additionally some transport-specific options are documented with the
-transports themselves.
+Additionally some transport-specific options are documented with the transports themselves.
diff --git a/man/tip/nng_dialer_setopt.3.html b/man/tip/nng_dialer_setopt.3.html
index cd0d677c..ac60db70 100644
--- a/man/tip/nng_dialer_setopt.3.html
+++ b/man/tip/nng_dialer_setopt.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_dialer_setopt(3)
---
nng_dialer_setopt(3)
@@ -16,10 +17,10 @@ layout: manpage_v2
-#include <nng/nng.h>
-
+#include <nng/nng.h>
+
int nng_dialer_setopt(nng_dialer d, const char *opt, const void *val,
- size_t valsz);
+ size_t valsz);
int nng_dialer_setopt_bool(nng_dialer d, const char *opt, bool bval);
@@ -29,11 +30,11 @@ layout: manpage_v2
int nng_dialer_setopt_ptr(nng_dialer d, const char *opt, void *ptr);
-int nng_dialer_setopt_size(nng_dialer d, const char *opt, size_t z);
+int nng_dialer_setopt_size(nng_dialer d, const char *opt, size_t z);
int nng_dialer_setopt_string(nng_dialer d, const char *opt, const char *str);
-int nng_dialer_setopt_uint64(nng_dialer d, const char *opt, uint64_t u64);
+int nng_dialer_setopt_uint64(nng_dialer d, const char *opt, uint64_t u64);
@@ -41,14 +42,15 @@ layout: manpage_v2
DESCRIPTION
-
+
-
+
These functions are deprecated. Please see nng_dialer_set.
+They may not be present if the library was built with NNG_ELIDE_DEPRECATED.
diff --git a/man/tip/nng_dialer_start.3.html b/man/tip/nng_dialer_start.3.html
index 6adfd846..68ff2b65 100644
--- a/man/tip/nng_dialer_start.3.html
+++ b/man/tip/nng_dialer_start.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_dialer_start(3)
---
nng_dialer_start(3)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nng/nng.h>
-
+#include <nng/nng.h>
+
int nng_dialer_start(nng_dialer d, int flags);
diff --git a/man/tip/nng_duration.5.html b/man/tip/nng_duration.5.html
index fc812b04..31100ea7 100644
--- a/man/tip/nng_duration.5.html
+++ b/man/tip/nng_duration.5.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_duration(5)
---
nng_duration(5)
@@ -16,13 +17,13 @@ layout: manpage_v2
-#include <nng/nng.h>
-
-typedef int32_t nng_duration;
+#include <nng/nng.h>
-#define NNG_DURATION_INFINITE (-1)
-#define NNG_DURATION_DEFAULT (-2)
-#define NNG_DURATION_ZERO (0)
+typedef int32_t nng_duration;
+
+#define NNG_DURATION_INFINITE (-1)
+#define NNG_DURATION_DEFAULT (-2)
+#define NNG_DURATION_ZERO (0)
@@ -43,8 +44,7 @@ This type is most often used in conjunction with timers and timeouts.
NNG_DURATION_DEFAULT
Indicates a context-specific default value should be used.
-
-
+
NNG_DURATION_INFINITE
-
Effectively an infinite duration; used most often to disable timeouts.
@@ -55,9 +55,6 @@ This type is most often used in conjunction with timers and timeouts.
-
-
-
diff --git a/man/tip/nng_free.3.html b/man/tip/nng_free.3.html
index ad0390ef..e5b94cbf 100644
--- a/man/tip/nng_free.3.html
+++ b/man/tip/nng_free.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_free(3)
---
nng_free(3)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-
-void nng_free(void *ptr, size_t size);
+#include <nng/nng.h>
+
+void nng_free(void *ptr, size_t size);
@@ -53,7 +54,7 @@ used to allocate the memory.
Do not attempt to use this function to deallocate memory
obtained by a call to the system malloc() or calloc() functions,
-or the C++ new operator.
+or the C++ new operator.
Doing so may result in unpredictable
behavior, including corruption of application memory.
diff --git a/man/tip/nng_getopt.3.html b/man/tip/nng_getopt.3.html
index 9bd3aefa..84cfbcde 100644
--- a/man/tip/nng_getopt.3.html
+++ b/man/tip/nng_getopt.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_getopt(3)
---
nng_getopt(3)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-
-int nng_getopt(nng_socket s, const char *opt, void *val, size_t *valszp);
+#include <nng/nng.h>
+
+int nng_getopt(nng_socket s, const char *opt, void *val, size_t *valszp);
int nng_getopt_bool(nng_socket s, const char *opt, bool *bvalp);
@@ -28,11 +29,11 @@ layout: manpage_v2
int nng_getopt_ptr(nng_socket s, const char *opt, void **ptr);
-int nng_getopt_size(nng_socket s, const char *opt, size_t *zp);
+int nng_getopt_size(nng_socket s, const char *opt, size_t *zp);
int nng_getopt_string(nng_socket s, const char *opt, char **strp);
-int nng_getopt_uint64(nng_socket s, const char *opt, uint64_t *u64p);
+int nng_getopt_uint64(nng_socket s, const char *opt, uint64_t *u64p);
@@ -40,14 +41,15 @@ layout: manpage_v2
DESCRIPTION
-
+
-
+
These functions are deprecated. Please see nng_socket_get.
+They may not be present if the library was built with NNG_ELIDE_DEPRECATED.
diff --git a/man/tip/nng_http_client_alloc.3http.html b/man/tip/nng_http_client_alloc.3http.html
index 9cba3ebf..d11ae1bc 100644
--- a/man/tip/nng_http_client_alloc.3http.html
+++ b/man/tip/nng_http_client_alloc.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_client_alloc(3http)
---
nng_http_client_alloc(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
int nng_http_client_alloc(nng_http_client *clientp, const nng_url *url);
diff --git a/man/tip/nng_http_client_connect.3http.html b/man/tip/nng_http_client_connect.3http.html
index 13a9d27e..e44009e5 100644
--- a/man/tip/nng_http_client_connect.3http.html
+++ b/man/tip/nng_http_client_connect.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_client_connect(3http)
---
nng_http_client_connect(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
void nng_http_client_connect(nng_http_client *client, nng_aio *aio);
@@ -114,25 +115,30 @@ obtained by
int rv;
// Error checks elided for clarity.
- nng_url_parse(&url, "http://www.google.com");
- nng_aio_alloc(&aio, NULL, NULL);
- nng_http_client_alloc(&client, url);
+
+ nng_url_parse(&url, "http://www.google.com");
+ nng_aio_alloc(&aio, NULL, NULL);
+ nng_http_client_alloc(&client, url);
- nng_http_client_connect(client, aio);
+ nng_http_client_connect(client, aio);
// Wait for connection to establish (or attempt to fail).
- nng_aio_wait(aio);
+
+ nng_aio_wait(aio);
- if ((rv = nng_aio_result(aio)) != 0) {
- printf("Connection failed: %s\n", nng_strerror(rv));
+ if ((rv = nng_aio_result(aio)) != 0) {
+ printf("Connection failed: %s\n", nng_strerror(rv));
} else {
// Connection established, get it.
- conn = nng_aio_get_output(aio, 0);
+
+ conn = nng_aio_get_output(aio, 0);
// ... do something with it here
-
+
+
// Close the connection when done to avoid leaking it.
- nng_http_conn_close(conn);
+
+ nng_http_conn_close(conn);
}
diff --git a/man/tip/nng_http_client_free.3http.html b/man/tip/nng_http_client_free.3http.html
index a61ff119..64abfb6d 100644
--- a/man/tip/nng_http_client_free.3http.html
+++ b/man/tip/nng_http_client_free.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_client_free(3http)
---
nng_http_client_free(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
void nng_http_client_free(nng_http_client *client);
diff --git a/man/tip/nng_http_client_get_tls.3http.html b/man/tip/nng_http_client_get_tls.3http.html
index 83e5a1f5..8b3d545b 100644
--- a/man/tip/nng_http_client_get_tls.3http.html
+++ b/man/tip/nng_http_client_get_tls.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_client_get_tls(3http)
---
nng_http_client_get_tls(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
int nng_http_client_get_tls(nng_http_client *client, nng_tls_config **cfgp);
diff --git a/man/tip/nng_http_client_set_tls.3http.html b/man/tip/nng_http_client_set_tls.3http.html
index 3fa775b2..1a587ef2 100644
--- a/man/tip/nng_http_client_set_tls.3http.html
+++ b/man/tip/nng_http_client_set_tls.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_client_set_tls(3http)
---
nng_http_client_set_tls(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
int nng_http_client_set_tls(nng_http_client *client, nng_tls_config *cfg);
diff --git a/man/tip/nng_http_client_transact.3http.html b/man/tip/nng_http_client_transact.3http.html
index f1985ab3..3b883472 100644
--- a/man/tip/nng_http_client_transact.3http.html
+++ b/man/tip/nng_http_client_transact.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_client_transact(3http)
---
nng_http_client_transact(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
void nng_http_client_transact(nng_http_client *client, nng_http_req *req,
nng_http_res *res, nng_aio *aio);
diff --git a/man/tip/nng_http_conn_close.3http.html b/man/tip/nng_http_conn_close.3http.html
index fd995599..05b75d82 100644
--- a/man/tip/nng_http_conn_close.3http.html
+++ b/man/tip/nng_http_conn_close.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_conn_close(3http)
---
nng_http_conn_close(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
void nng_http_conn_close(nng_http_conn *conn);
diff --git a/man/tip/nng_http_conn_read.3http.html b/man/tip/nng_http_conn_read.3http.html
index b1bd0d53..9e618d8b 100644
--- a/man/tip/nng_http_conn_read.3http.html
+++ b/man/tip/nng_http_conn_read.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_conn_read(3http)
---
nng_http_conn_read(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
void nng_http_conn_read(nng_http_conn *conn, nng_aio *aio);
diff --git a/man/tip/nng_http_conn_read_all.3http.html b/man/tip/nng_http_conn_read_all.3http.html
index 00246474..c101bdf1 100644
--- a/man/tip/nng_http_conn_read_all.3http.html
+++ b/man/tip/nng_http_conn_read_all.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_conn_read_all(3http)
---
nng_http_conn_read_all(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
void nng_http_conn_read_all(nng_http_conn *conn, nng_aio *aio);
diff --git a/man/tip/nng_http_conn_read_req.3http.html b/man/tip/nng_http_conn_read_req.3http.html
index 220dedbb..fa4f959d 100644
--- a/man/tip/nng_http_conn_read_req.3http.html
+++ b/man/tip/nng_http_conn_read_req.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_conn_read_req(3http)
---
nng_http_conn_read_req(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
void nng_http_conn_read_req(nng_http_conn *conn, nng_http_req *req,
nng_aio *aio);
diff --git a/man/tip/nng_http_conn_read_res.3http.html b/man/tip/nng_http_conn_read_res.3http.html
index 472f7656..9132169f 100644
--- a/man/tip/nng_http_conn_read_res.3http.html
+++ b/man/tip/nng_http_conn_read_res.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_conn_read_res(3http)
---
nng_http_conn_read_res(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
void nng_http_conn_read_res(nng_http_conn *conn, nng_http_res *res,
nng_aio *aio);
diff --git a/man/tip/nng_http_conn_transact.3http.html b/man/tip/nng_http_conn_transact.3http.html
index e8cd4b00..5f72c8cc 100644
--- a/man/tip/nng_http_conn_transact.3http.html
+++ b/man/tip/nng_http_conn_transact.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_conn_transact(3http)
---
nng_http_conn_transact(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
void nng_http_conn_transact(nng_http_conn *conn, nng_http_req *req,
nng_http_res *res, nng_aio *aio);
diff --git a/man/tip/nng_http_conn_write.3http.html b/man/tip/nng_http_conn_write.3http.html
index b4465ae6..06069e00 100644
--- a/man/tip/nng_http_conn_write.3http.html
+++ b/man/tip/nng_http_conn_write.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_conn_write(3http)
---
nng_http_conn_write(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
void nng_http_conn_write(nng_http_conn *conn, nng_aio *aio);
diff --git a/man/tip/nng_http_conn_write_all.3http.html b/man/tip/nng_http_conn_write_all.3http.html
index 3ff311aa..f1e7d663 100644
--- a/man/tip/nng_http_conn_write_all.3http.html
+++ b/man/tip/nng_http_conn_write_all.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_conn_write_all(3http)
---
nng_http_conn_write_all(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
void nng_http_conn_write_all(nng_http_conn *conn, nng_aio *aio);
diff --git a/man/tip/nng_http_conn_write_req.3http.html b/man/tip/nng_http_conn_write_req.3http.html
index e9bdad4a..455770f8 100644
--- a/man/tip/nng_http_conn_write_req.3http.html
+++ b/man/tip/nng_http_conn_write_req.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_conn_write_req(3http)
---
nng_http_conn_write_req(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
void nng_http_conn_write_req(nng_http_conn *conn, nng_http_req *req,
nng_aio *aio);
diff --git a/man/tip/nng_http_conn_write_res.3http.html b/man/tip/nng_http_conn_write_res.3http.html
index b0946a06..3ae9c946 100644
--- a/man/tip/nng_http_conn_write_res.3http.html
+++ b/man/tip/nng_http_conn_write_res.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_conn_write_res(3http)
---
nng_http_conn_write_res(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
void nng_http_conn_write_res(nng_http_conn *conn, nng_http_res *res,
nng_aio *aio);
diff --git a/man/tip/nng_http_handler_alloc.3http.html b/man/tip/nng_http_handler_alloc.3http.html
index 9b68cc64..89cd6e76 100644
--- a/man/tip/nng_http_handler_alloc.3http.html
+++ b/man/tip/nng_http_handler_alloc.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_handler_alloc(3http)
---
nng_http_handler_alloc(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
typedef struct nng_http_handler nng_http_handler;
int nng_http_handler_alloc(nng_http_handler **hp, const char *path,
@@ -31,10 +32,10 @@ layout: manpage_v2
const char *filename);
int nng_http_handler_alloc_redirect(nng_http_handler **hp, const char *path,
- uint16_t status, const char *location);
+ uint16_t status, const char *location);
int nng_http_handler_alloc_static(nng_http_handler **hp, const char *path,
- const void *data, size_t size, const char *content_type);
+ const void *data, size_t size, const char *content_type);
@@ -58,7 +59,7 @@ considered when determining whether the handler should be called.
Additionally each handler has a method it is registered to handle
(the default is GET, see
nng_http_handler_set_method()), and
-optionally a 'Host' header it can be matched against (see
+optionally a 'Host' header it can be matched against (see
nng_http_handler_set_host()).
diff --git a/man/tip/nng_http_handler_collect_body.3http.html b/man/tip/nng_http_handler_collect_body.3http.html
index 08ffbfb1..2d200e6c 100644
--- a/man/tip/nng_http_handler_collect_body.3http.html
+++ b/man/tip/nng_http_handler_collect_body.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_handler_collect_body(3http)
---
nng_http_handler_collect_body(3http)
@@ -16,10 +17,10 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
-int nng_http_handler_collect_body(nng_http_handler *handler, bool want, size_t maxsz);
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
+int nng_http_handler_collect_body(nng_http_handler *handler, bool want, size_t maxsz);
diff --git a/man/tip/nng_http_handler_free.3http.html b/man/tip/nng_http_handler_free.3http.html
index 6a9150d8..7625e799 100644
--- a/man/tip/nng_http_handler_free.3http.html
+++ b/man/tip/nng_http_handler_free.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_handler_free(3http)
---
nng_http_handler_free(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
void nng_http_handler_free(nng_http_handler *h);
diff --git a/man/tip/nng_http_handler_get_data.3http.html b/man/tip/nng_http_handler_get_data.3http.html
index 3396c682..79fef724 100644
--- a/man/tip/nng_http_handler_get_data.3http.html
+++ b/man/tip/nng_http_handler_get_data.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_handler_get_data(3http)
---
nng_http_handler_get_data(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
void *nng_http_handler_get_data(nng_http_handler *handler);
diff --git a/man/tip/nng_http_handler_set_data.3http.html b/man/tip/nng_http_handler_set_data.3http.html
index c11fdd4c..4ff53cfa 100644
--- a/man/tip/nng_http_handler_set_data.3http.html
+++ b/man/tip/nng_http_handler_set_data.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_handler_set_data(3http)
---
nng_http_handler_set_data(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
int nng_http_handler_set_data(nng_http_handler *handler, void *data,
void (*dtor)(void *));
diff --git a/man/tip/nng_http_handler_set_host.3http.html b/man/tip/nng_http_handler_set_host.3http.html
index 07f4ca70..3e8c1138 100644
--- a/man/tip/nng_http_handler_set_host.3http.html
+++ b/man/tip/nng_http_handler_set_host.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_handler_set_host(3http)
---
nng_http_handler_set_host(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
int nng_http_handler_set_host(nng_http_handler *handler, const char *host);
diff --git a/man/tip/nng_http_handler_set_method.3http.html b/man/tip/nng_http_handler_set_method.3http.html
index 4062a557..f45233e6 100644
--- a/man/tip/nng_http_handler_set_method.3http.html
+++ b/man/tip/nng_http_handler_set_method.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_handler_set_method(3http)
---
nng_http_handler_set_method(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
int nng_http_handler_set_method(nng_http_handler *handler, const char *method);
@@ -29,8 +30,8 @@ layout: manpage_v2
The nng_http_handler_set_method() function sets the method that the
-handler will be called for, such as "GET" or "POST".
-(By default the "GET" method is handled.)
+handler will be called for, such as "GET" or "POST".
+(By default the "GET" method is handled.)
If method is NULL, then the request method
is not examined, and the handler will be executed regardless of the
method.
@@ -42,8 +43,8 @@ method.
-The server will automatically call "GET" handlers if the client
-sends a "HEAD" request, and will suppress HTTP body data in the responses
+The server will automatically call "GET" handlers if the client
+sends a "HEAD" request, and will suppress HTTP body data in the responses
sent for such requests.
diff --git a/man/tip/nng_http_handler_set_tree.3http.html b/man/tip/nng_http_handler_set_tree.3http.html
index 3d10221c..4dbdd8fe 100644
--- a/man/tip/nng_http_handler_set_tree.3http.html
+++ b/man/tip/nng_http_handler_set_tree.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_handler_set_tree(3http)
---
nng_http_handler_set_tree(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
int nng_http_handler_set_tree(nng_http_handler *handler);
int nng_http_handler_set_tree_exclusive(nng_http_handler *handler);
diff --git a/man/tip/nng_http_hijack.3http.html b/man/tip/nng_http_hijack.3http.html
index 60844405..fbb8fee1 100644
--- a/man/tip/nng_http_hijack.3http.html
+++ b/man/tip/nng_http_hijack.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_hijack(3http)
---
nng_http_hijack(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
void nng_http_hijack(nng_http_conn *conn);
diff --git a/man/tip/nng_http_req_add_header.3http.html b/man/tip/nng_http_req_add_header.3http.html
index 1eb8547c..e7af8c13 100644
--- a/man/tip/nng_http_req_add_header.3http.html
+++ b/man/tip/nng_http_req_add_header.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_req_add_header(3http)
---
nng_http_req_add_header(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
int nng_http_req_add_header(nng_http_req *req, const char *key,
const char *val);
diff --git a/man/tip/nng_http_req_alloc.3http.html b/man/tip/nng_http_req_alloc.3http.html
index 963aac5c..63d5e719 100644
--- a/man/tip/nng_http_req_alloc.3http.html
+++ b/man/tip/nng_http_req_alloc.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_req_alloc(3http)
---
nng_http_req_alloc(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
int nng_http_req_alloc(nng_http_req **reqp, const nng_url *url);
diff --git a/man/tip/nng_http_req_copy_data.3http.html b/man/tip/nng_http_req_copy_data.3http.html
index d26f7e0d..1fdc3226 100644
--- a/man/tip/nng_http_req_copy_data.3http.html
+++ b/man/tip/nng_http_req_copy_data.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_req_copy_data(3http)
---
nng_http_req_copy_data(3http)
@@ -16,10 +17,10 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
-int nng_http_req_copy_data(nng_http_req *req, const void *body, size_t size);
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
+int nng_http_req_copy_data(nng_http_req *req, const void *body, size_t size);
diff --git a/man/tip/nng_http_req_del_header.3http.html b/man/tip/nng_http_req_del_header.3http.html
index 1874efeb..39065466 100644
--- a/man/tip/nng_http_req_del_header.3http.html
+++ b/man/tip/nng_http_req_del_header.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_req_del_header(3http)
---
nng_http_req_del_header(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
int nng_http_req_del_header(nng_http_req *req, const char *key);
diff --git a/man/tip/nng_http_req_free.3http.html b/man/tip/nng_http_req_free.3http.html
index 63228e2f..168bd434 100644
--- a/man/tip/nng_http_req_free.3http.html
+++ b/man/tip/nng_http_req_free.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_req_free(3http)
---
nng_http_req_free(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
void nng_http_req_free(nng_http_req *req);
diff --git a/man/tip/nng_http_req_get_data.3http.html b/man/tip/nng_http_req_get_data.3http.html
index 1e1b52cf..b1e5931a 100644
--- a/man/tip/nng_http_req_get_data.3http.html
+++ b/man/tip/nng_http_req_get_data.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_req_get_data(3http)
---
nng_http_req_get_data(3http)
@@ -16,10 +17,10 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
-void nng_http_req_get_data(nng_http_req *req, void **bodyp, size_t *sizep);
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
+void nng_http_req_get_data(nng_http_req *req, void **bodyp, size_t *sizep);
diff --git a/man/tip/nng_http_req_get_header.3http.html b/man/tip/nng_http_req_get_header.3http.html
index e3759f6d..a5470296 100644
--- a/man/tip/nng_http_req_get_header.3http.html
+++ b/man/tip/nng_http_req_get_header.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_req_get_header(3http)
---
nng_http_req_get_header(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
const char *nng_http_req_get_header(nng_http_req *req, const char *key);
diff --git a/man/tip/nng_http_req_get_method.3http.html b/man/tip/nng_http_req_get_method.3http.html
index 5640af89..df575784 100644
--- a/man/tip/nng_http_req_get_method.3http.html
+++ b/man/tip/nng_http_req_get_method.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_req_get_method(3http)
---
nng_http_req_get_method(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
const char *nng_http_req_get_method(nng_http_req *req);
@@ -30,7 +31,7 @@ layout: manpage_v2
The nng_http_req_get_method() returns the HTTP method associated with
the request req.
-The value will be a string, such as "GET" or "POST".
+The value will be a string, such as "GET" or "POST".
diff --git a/man/tip/nng_http_req_get_uri.3http.html b/man/tip/nng_http_req_get_uri.3http.html
index d2fdb5ef..9a5a12ea 100644
--- a/man/tip/nng_http_req_get_uri.3http.html
+++ b/man/tip/nng_http_req_get_uri.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_req_get_uri(3http)
---
nng_http_req_get_uri(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
const char *nng_http_req_get_uri(nng_http_req *req);
diff --git a/man/tip/nng_http_req_get_version.3http.html b/man/tip/nng_http_req_get_version.3http.html
index b333ec3e..0adfec6f 100644
--- a/man/tip/nng_http_req_get_version.3http.html
+++ b/man/tip/nng_http_req_get_version.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_req_get_version(3http)
---
nng_http_req_get_version(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
const char *nng_http_req_get_version(nng_http_req *req);
@@ -29,7 +30,7 @@ layout: manpage_v2
The nng_http_req_get_version() returns a string representing the HTTP
-protocol version associated with the request req, such as "HTTP/1.1".
+protocol version associated with the request req, such as "HTTP/1.1".
diff --git a/man/tip/nng_http_req_reset.3http.html b/man/tip/nng_http_req_reset.3http.html
index 6a3b1ab1..d7984f66 100644
--- a/man/tip/nng_http_req_reset.3http.html
+++ b/man/tip/nng_http_req_reset.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_req_reset(3http)
---
nng_http_req_reset(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
void nng_http_req_reset(nng_http_req *req);
diff --git a/man/tip/nng_http_req_set_data.3http.html b/man/tip/nng_http_req_set_data.3http.html
index 9e98bb30..7d6f0b45 100644
--- a/man/tip/nng_http_req_set_data.3http.html
+++ b/man/tip/nng_http_req_set_data.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_req_set_data(3http)
---
nng_http_req_set_data(3http)
@@ -16,10 +17,10 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
-int nng_http_req_set_data(nng_http_req *req, const void *body, size_t size);
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
+int nng_http_req_set_data(nng_http_req *req, const void *body, size_t size);
diff --git a/man/tip/nng_http_req_set_header.3http.html b/man/tip/nng_http_req_set_header.3http.html
index 41fae4e3..6eacd2c3 100644
--- a/man/tip/nng_http_req_set_header.3http.html
+++ b/man/tip/nng_http_req_set_header.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_req_set_header(3http)
---
nng_http_req_set_header(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
int nng_http_req_set_header(nng_http_req *req, const char *key,
const char *val);
diff --git a/man/tip/nng_http_req_set_method.3http.html b/man/tip/nng_http_req_set_method.3http.html
index 74270b09..d40a3c93 100644
--- a/man/tip/nng_http_req_set_method.3http.html
+++ b/man/tip/nng_http_req_set_method.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_req_set_method(3http)
---
nng_http_req_set_method(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
int nng_http_req_set_method(nng_http_req *req, const char *method);
@@ -30,11 +31,11 @@ layout: manpage_v2
The nng_http_req_set_method() sets the HTTP method associated with
the request req to method. The method must be a string,
-such as "GET" or "POST", and the HTTP specifications indicate that it must
+such as "GET" or "POST", and the HTTP specifications indicate that it must
be upper case.
-The default value method for newly allocated requests is "GET".
+The default value method for newly allocated requests is "GET".
A local copy of the method is made in the request req.
diff --git a/man/tip/nng_http_req_set_uri.3http.html b/man/tip/nng_http_req_set_uri.3http.html
index 796e0979..62b515ae 100644
--- a/man/tip/nng_http_req_set_uri.3http.html
+++ b/man/tip/nng_http_req_set_uri.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_req_set_uri(3http)
---
nng_http_req_set_uri(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
int nng_http_req_set_uri(nng_http_req *req, const char *uri);
diff --git a/man/tip/nng_http_req_set_version.3http.html b/man/tip/nng_http_req_set_version.3http.html
index b11e8bc7..4afacea8 100644
--- a/man/tip/nng_http_req_set_version.3http.html
+++ b/man/tip/nng_http_req_set_version.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_req_set_version(3http)
---
nng_http_req_set_version(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
int nng_http_req_set_version(nng_http_req *req, const char *version);
@@ -31,8 +32,8 @@ layout: manpage_v2
The nng_http_req_set_version() sets the HTTP protocol version associated with
the request req to version.
The version must be a string containing
-a valid HTTP protocol version, such as "HTTP/1.0".
-The default value is "HTTP/1.1".
+a valid HTTP protocol version, such as "HTTP/1.0".
+The default value is "HTTP/1.1".
A local copy of the version is made in the request req.
@@ -57,7 +58,7 @@ No validation of the version supplied is performed.
The library does not contain support for versions of HTTP other than
-"HTTP/1.0" and "HTTP/1.1".
+"HTTP/1.0" and "HTTP/1.1".
Specifying any other version may result in unspecified behavior.
diff --git a/man/tip/nng_http_res_add_header.3http.html b/man/tip/nng_http_res_add_header.3http.html
index b50fc473..58860793 100644
--- a/man/tip/nng_http_res_add_header.3http.html
+++ b/man/tip/nng_http_res_add_header.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_res_add_header(3http)
---
nng_http_res_add_header(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
int nng_http_res_add_header(nng_http_res *res, const char *key,
const char *val);
diff --git a/man/tip/nng_http_res_alloc.3http.html b/man/tip/nng_http_res_alloc.3http.html
index 47ff32d0..4d3e48c9 100644
--- a/man/tip/nng_http_res_alloc.3http.html
+++ b/man/tip/nng_http_res_alloc.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_res_alloc(3http)
---
nng_http_res_alloc(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
int nng_http_res_alloc(nng_http_res **resp);
diff --git a/man/tip/nng_http_res_alloc_error.3http.html b/man/tip/nng_http_res_alloc_error.3http.html
index 35d69de2..32457382 100644
--- a/man/tip/nng_http_res_alloc_error.3http.html
+++ b/man/tip/nng_http_res_alloc_error.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_res_alloc_error(3http)
---
nng_http_res_alloc_error(3http)
@@ -16,10 +17,10 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
-int nng_http_res_alloc_error(nng_http_res **resp, uint16_t status);
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
+int nng_http_res_alloc_error(nng_http_res **resp, uint16_t status);
@@ -36,7 +37,7 @@ a simple HTML page containing the same information will be generated and
attached to the response.
(Relevant HTTP headers will be set as well, such as Content-Type
and Content-Length.)
-The HTTP protocol version is also set to "HTTP/1.1".
+The HTTP protocol version is also set to "HTTP/1.1".
diff --git a/man/tip/nng_http_res_copy_data.3http.html b/man/tip/nng_http_res_copy_data.3http.html
index eec3510f..9622b1e1 100644
--- a/man/tip/nng_http_res_copy_data.3http.html
+++ b/man/tip/nng_http_res_copy_data.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_res_copy_data(3http)
---
nng_http_res_copy_data(3http)
@@ -16,10 +17,10 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
-int nng_http_res_copy_data(nng_http_res *res, const void *body, size_t size);
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
+int nng_http_res_copy_data(nng_http_res *res, const void *body, size_t size);
diff --git a/man/tip/nng_http_res_del_header.3http.html b/man/tip/nng_http_res_del_header.3http.html
index c5217922..d887bab5 100644
--- a/man/tip/nng_http_res_del_header.3http.html
+++ b/man/tip/nng_http_res_del_header.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_res_del_header(3http)
---
nng_http_res_del_header(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
int nng_http_res_del_header(nng_http_res *res, const char *key);
diff --git a/man/tip/nng_http_res_free.3http.html b/man/tip/nng_http_res_free.3http.html
index 85c36f7c..cb245599 100644
--- a/man/tip/nng_http_res_free.3http.html
+++ b/man/tip/nng_http_res_free.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_res_free(3http)
---
nng_http_res_free(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
void nng_http_res_free(nng_http_res *req);
diff --git a/man/tip/nng_http_res_get_data.3http.html b/man/tip/nng_http_res_get_data.3http.html
index a899854c..9a2a06ad 100644
--- a/man/tip/nng_http_res_get_data.3http.html
+++ b/man/tip/nng_http_res_get_data.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_res_get_data(3http)
---
nng_http_res_get_data(3http)
@@ -16,10 +17,10 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
-void nng_http_res_get_data(nng_http_res *res, void **bodyp, size_t *sizep);
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
+void nng_http_res_get_data(nng_http_res *res, void **bodyp, size_t *sizep);
diff --git a/man/tip/nng_http_res_get_header.3http.html b/man/tip/nng_http_res_get_header.3http.html
index dcc65cc1..9102ad29 100644
--- a/man/tip/nng_http_res_get_header.3http.html
+++ b/man/tip/nng_http_res_get_header.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_res_get_header(3http)
---
nng_http_res_get_header(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
const char *nng_http_res_get_header(nng_http_res *res, const char *key);
diff --git a/man/tip/nng_http_res_get_reason.3http.html b/man/tip/nng_http_res_get_reason.3http.html
index e985c7b0..4a5f4162 100644
--- a/man/tip/nng_http_res_get_reason.3http.html
+++ b/man/tip/nng_http_res_get_reason.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_res_get_reason(3http)
---
nng_http_res_get_reason(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
const char *nng_http_res_get_reason(nng_http_res *res);
diff --git a/man/tip/nng_http_res_get_status.3http.html b/man/tip/nng_http_res_get_status.3http.html
index 7f8ca842..259b5ea0 100644
--- a/man/tip/nng_http_res_get_status.3http.html
+++ b/man/tip/nng_http_res_get_status.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_res_get_status(3http)
---
nng_http_res_get_status(3http)
@@ -16,10 +17,10 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
-uint16_t nng_http_res_get_status(nng_http_res *res);
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
+uint16_t nng_http_res_get_status(nng_http_res *res);
diff --git a/man/tip/nng_http_res_get_version.3http.html b/man/tip/nng_http_res_get_version.3http.html
index ad1156f8..f8cf0ff7 100644
--- a/man/tip/nng_http_res_get_version.3http.html
+++ b/man/tip/nng_http_res_get_version.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_res_get_version(3http)
---
nng_http_res_get_version(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
const char *nng_http_res_get_version(nng_http_res *res);
@@ -29,7 +30,7 @@ layout: manpage_v2
The nng_http_res_get_version() returns a string representing the HTTP
-protocol version associated with the request res, such as "HTTP/1.1".
+protocol version associated with the request res, such as "HTTP/1.1".
diff --git a/man/tip/nng_http_res_reset.3http.html b/man/tip/nng_http_res_reset.3http.html
index 1947bbd3..b8e345b9 100644
--- a/man/tip/nng_http_res_reset.3http.html
+++ b/man/tip/nng_http_res_reset.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_res_reset(3http)
---
nng_http_res_reset(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
void nng_http_res_reset(nng_http_res *res);
diff --git a/man/tip/nng_http_res_set_data.3http.html b/man/tip/nng_http_res_set_data.3http.html
index 9e426dd6..257e185e 100644
--- a/man/tip/nng_http_res_set_data.3http.html
+++ b/man/tip/nng_http_res_set_data.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_res_set_data(3http)
---
nng_http_res_set_data(3http)
@@ -16,10 +17,10 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
-int nng_http_res_set_data(nng_http_res *res, const void *body, size_t size);
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
+int nng_http_res_set_data(nng_http_res *res, const void *body, size_t size);
diff --git a/man/tip/nng_http_res_set_header.3http.html b/man/tip/nng_http_res_set_header.3http.html
index 7bd7ebfd..fc888922 100644
--- a/man/tip/nng_http_res_set_header.3http.html
+++ b/man/tip/nng_http_res_set_header.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_res_set_header(3http)
---
nng_http_res_set_header(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
int nng_http_res_set_header(nng_http_res *res, const char *key,
const char *val);
diff --git a/man/tip/nng_http_res_set_reason.3http.html b/man/tip/nng_http_res_set_reason.3http.html
index 22d3309b..105dcc5e 100644
--- a/man/tip/nng_http_res_set_reason.3http.html
+++ b/man/tip/nng_http_res_set_reason.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_res_set_reason(3http)
---
nng_http_res_set_reason(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
int nng_http_res_set_reason(nng_http_res *res, const char *reason);
diff --git a/man/tip/nng_http_res_set_status.3http.html b/man/tip/nng_http_res_set_status.3http.html
index de753733..edda0df5 100644
--- a/man/tip/nng_http_res_set_status.3http.html
+++ b/man/tip/nng_http_res_set_status.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_res_set_status(3http)
---
nng_http_res_set_status(3http)
@@ -16,10 +17,10 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
-int nng_http_res_set_status(nng_http_res *res, uint16_t status);
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
+int nng_http_res_set_status(nng_http_res *res, uint16_t status);
diff --git a/man/tip/nng_http_res_set_version.3http.html b/man/tip/nng_http_res_set_version.3http.html
index 35ab91b1..453f4f20 100644
--- a/man/tip/nng_http_res_set_version.3http.html
+++ b/man/tip/nng_http_res_set_version.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_res_set_version(3http)
---
nng_http_res_set_version(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
int nng_http_res_set_version(nng_http_res *res, const char *version);
@@ -31,8 +32,8 @@ layout: manpage_v2
The nng_http_res_set_version() sets the HTTP protocol version associated with
the response res to version.
The version must be a string containing
-a valid HTTP protocol version, such as "HTTP/1.0".
-The default value is "HTTP/1.1".
+a valid HTTP protocol version, such as "HTTP/1.0".
+The default value is "HTTP/1.1".
A local copy of the version is made in the response res.
@@ -57,7 +58,7 @@ No validation of the version supplied is performed.
The library does not contain support for versions of HTTP other than
-"HTTP/1.0" and "HTTP/1.1".
+"HTTP/1.0" and "HTTP/1.1".
Specifying any other version may result in unspecified behavior.
diff --git a/man/tip/nng_http_server_add_handler.3http.html b/man/tip/nng_http_server_add_handler.3http.html
index f6017319..e5906600 100644
--- a/man/tip/nng_http_server_add_handler.3http.html
+++ b/man/tip/nng_http_server_add_handler.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_server_add_handler(3http)
---
nng_http_server_add_handler(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
int nng_http_server_add_handler(nng_http_server *s, nng_http_handler *h);
diff --git a/man/tip/nng_http_server_del_handler.3http.html b/man/tip/nng_http_server_del_handler.3http.html
index b50e556c..deb3eade 100644
--- a/man/tip/nng_http_server_del_handler.3http.html
+++ b/man/tip/nng_http_server_del_handler.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_server_del_handler(3http)
---
nng_http_server_del_handler(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
int nng_http_server_del_handler(nng_http_server *s, nng_http_handler *h);
diff --git a/man/tip/nng_http_server_get_addr.3http.html b/man/tip/nng_http_server_get_addr.3http.html
index 71e7b324..1807c429 100644
--- a/man/tip/nng_http_server_get_addr.3http.html
+++ b/man/tip/nng_http_server_get_addr.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_server_get_addr(3http)
---
nng_http_server_get_addr(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
int nng_http_server_get_addr(nng_http_server *server, nng_sockaddr *sap);
diff --git a/man/tip/nng_http_server_get_tls.3http.html b/man/tip/nng_http_server_get_tls.3http.html
index 2ad0706b..b437fd8d 100644
--- a/man/tip/nng_http_server_get_tls.3http.html
+++ b/man/tip/nng_http_server_get_tls.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_server_get_tls(3http)
---
nng_http_server_get_tls(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
int nng_http_server_get_tls(nng_http_server *s, nng_tls_config **cfgp);
diff --git a/man/tip/nng_http_server_hold.3http.html b/man/tip/nng_http_server_hold.3http.html
index c7f1ff68..0058f21c 100644
--- a/man/tip/nng_http_server_hold.3http.html
+++ b/man/tip/nng_http_server_hold.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_server_hold(3http)
---
nng_http_server_hold(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
int nng_http_server_hold(nng_http_server **serverp, const nng_url *url);
diff --git a/man/tip/nng_http_server_release.3http.html b/man/tip/nng_http_server_release.3http.html
index f71c0e88..d1d2197c 100644
--- a/man/tip/nng_http_server_release.3http.html
+++ b/man/tip/nng_http_server_release.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_server_release(3http)
---
nng_http_server_release(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
void nng_http_server_release(nng_http_server *server);
@@ -36,7 +37,7 @@ that was previously held with
This effectively drops the reference count on the server instance. When
the reference count drops to zero, then the server and all resources
associated with it (e.g. HTTP handlers, connections, etc.) are deallocated.
-(If the server is "running" when this occurs, then the server is stopped.)
+(If the server is "running" when this occurs, then the server is stopped.)
diff --git a/man/tip/nng_http_server_res_error.3http.html b/man/tip/nng_http_server_res_error.3http.html
index e22e0cde..089af340 100644
--- a/man/tip/nng_http_server_res_error.3http.html
+++ b/man/tip/nng_http_server_res_error.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_server_res_error(3http)
---
nng_http_server_res_error(3http)
@@ -16,10 +17,10 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
-int nng_http_server_res_error(nng_http_server *server,
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
+int nng_http_server_res_error(nng_http_server *server,
nng_http_res *response);
@@ -30,7 +31,7 @@ layout: manpage_v2
The nng_http_server_res_error() sets the body of response
-to server's error page, which may have been customized using the
+to server's error page, which may have been customized using the
nng_http_server_error_file()
or
nng_http_server_error_page()
diff --git a/man/tip/nng_http_server_set_error_file.3http.html b/man/tip/nng_http_server_set_error_file.3http.html
index d60d691e..aced4e28 100644
--- a/man/tip/nng_http_server_set_error_file.3http.html
+++ b/man/tip/nng_http_server_set_error_file.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_server_set_error_file(3http)
---
nng_http_server_set_error_file(3http)
@@ -16,11 +17,11 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
int nng_http_server_set_error_file(nng_http_server *server,
- uint16_t code, const char *path);
+ uint16_t code, const char *path);
diff --git a/man/tip/nng_http_server_set_error_page.3http.html b/man/tip/nng_http_server_set_error_page.3http.html
index 0a08ae28..b5ab9aa3 100644
--- a/man/tip/nng_http_server_set_error_page.3http.html
+++ b/man/tip/nng_http_server_set_error_page.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_server_set_error_page(3http)
---
nng_http_server_set_error_page(3http)
@@ -16,11 +17,11 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
int nng_http_server_set_error_page(nng_http_server *server,
- uint16_t code, const char *html);
+ uint16_t code, const char *html);
diff --git a/man/tip/nng_http_server_set_tls.3http.html b/man/tip/nng_http_server_set_tls.3http.html
index 7db9bf4d..97c967d1 100644
--- a/man/tip/nng_http_server_set_tls.3http.html
+++ b/man/tip/nng_http_server_set_tls.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_server_set_tls(3http)
---
nng_http_server_set_tls(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
int nng_http_server_set_tls(nng_http_server *s, nng_tls_config *cfg);
diff --git a/man/tip/nng_http_server_start.3http.html b/man/tip/nng_http_server_start.3http.html
index a47e36e9..0dff888d 100644
--- a/man/tip/nng_http_server_start.3http.html
+++ b/man/tip/nng_http_server_start.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_server_start(3http)
---
nng_http_server_start(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
int nng_http_server_start(nng_http_server *server);
diff --git a/man/tip/nng_http_server_stop.3http.html b/man/tip/nng_http_server_stop.3http.html
index 6c0ccb9e..c5c16eee 100644
--- a/man/tip/nng_http_server_stop.3http.html
+++ b/man/tip/nng_http_server_stop.3http.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_http_server_stop(3http)
---
nng_http_server_stop(3http)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-#include <nng/supplemental/http/http.h>
-
+#include <nng/nng.h>
+#include <nng/supplemental/http/http.h>
+
void nng_http_server_stop(nng_http_server *server);
diff --git a/man/tip/nng_inproc.7.html b/man/tip/nng_inproc.7.html
index aefe9260..f418548e 100644
--- a/man/tip/nng_inproc.7.html
+++ b/man/tip/nng_inproc.7.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_inproc(7)
---
nng_inproc(7)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nng/transport/inproc/inproc.h>
-
+#include <nng/transport/inproc/inproc.h>
+
int nng_inproc_register(void);
diff --git a/man/tip/nng_inproc_register.3.html b/man/tip/nng_inproc_register.3.html
index 3e03f14c..8fc75327 100644
--- a/man/tip/nng_inproc_register.3.html
+++ b/man/tip/nng_inproc_register.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_inproc_register(3)
---
nng_inproc_register(3)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nng/transport/inproc/inproc.h>
-
+#include <nng/transport/inproc/inproc.h>
+
int nng_inproc_register(void);
@@ -30,6 +31,19 @@ layout: manpage_v2
The nng_inproc_register() function registers the
inproc transport(transport, inproc) for use.
+
+
+
+
+
+
+
+This function is deprecated, and may be removed from a future release.
+It is no longer necessary to explicitly register transports.
+
+
+
+
diff --git a/man/tip/nng_iov.5.html b/man/tip/nng_iov.5.html
index 9f69d02b..fac3ab6d 100644
--- a/man/tip/nng_iov.5.html
+++ b/man/tip/nng_iov.5.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_iov(5)
---
nng_iov(5)
@@ -16,11 +17,11 @@ layout: manpage_v2
-#include <nng/nng.h>
-
+#include <nng/nng.h>
+
typedef struct {
void * iov_buf;
- size_t iov_len;
+ size_t iov_len;
} nng_iov;
@@ -50,7 +51,7 @@ an nng_aio structure using the
iov_buf
This is a pointer to the first byte within the memory being
- referenced by this scatter/gather element.
+referenced by this scatter/gather element.
iov_len
diff --git a/man/tip/nng_ipc.7.html b/man/tip/nng_ipc.7.html
index ed2c43cc..c872246c 100644
--- a/man/tip/nng_ipc.7.html
+++ b/man/tip/nng_ipc.7.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_ipc(7)
---
nng_ipc(7)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nng/transport/ipc/ipc.h>
-
+#include <nng/transport/ipc/ipc.h>
+
int nng_ipc_register(void);
@@ -120,7 +121,7 @@ the Named Pipes and the AF_UNIX based transports.
On Linux, this transport also can support abstract sockets.
Abstract sockets use a URI-encoded name after the scheme, which allows arbitrary values to be conveyed
in the path, including embedded NUL bytes.
-For example, the name "a\0b" would be represented as abstract://a%00b.
+For example, the name ”a\0b“ would be represented as abstract://a%00b.
-[[NNG_OPT_IPC_PEER_UID]]NNG_OPT_IPC_PEER_UID
+NNG_OPT_IPC_PEER_UID
(uint64_t)
This read-only option provides a connected peer’s user id.
@@ -105,13 +106,13 @@ This is the effective user id of the peer when either the underlying
listen() or connect() calls were made, and is not forgeable.
This option is generally only available on POSIX systems.
-[[NNG_OPT_IPC_PEER_ZONEID]]NNG_OPT_IPC_PEER_ZONEID
+NNG_OPT_IPC_PEER_ZONEID
(uint64_t)
This read-only option provides a connected peer’s the zone id.
Zones (and this option) are only supported on Solaris and illumos systems.
-[[NNG_OPT_IPC_PERMISSIONS]]NNG_OPT_IPC_PERMISSIONS
+NNG_OPT_IPC_PERMISSIONS
(int)
This write-only option may be applied to a listener to configure the
@@ -179,7 +180,7 @@ permission.
-[[NNG_OPT_IPC_SECURITY_DESCRIPTOR]]NNG_OPT_IPC_SECURITY_DESCRIPTOR
+NNG_OPT_IPC_SECURITY_DESCRIPTOR
(PSECURITY_DESCRIPTOR)
This write-only option may be used on listeners on Windows platforms to
diff --git a/man/tip/nng_ipc_register.3.html b/man/tip/nng_ipc_register.3.html
index a6fa689b..628f1a25 100644
--- a/man/tip/nng_ipc_register.3.html
+++ b/man/tip/nng_ipc_register.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_ipc_register(3)
---
nng_ipc_register(3)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nng/transport/ipc/ipc.h>
-
+#include <nng/transport/ipc/ipc.h>
+
int nng_ipc_register(void);
@@ -30,6 +31,19 @@ layout: manpage_v2
The nng_ipc_register() function registers the
ipc transport(transport, ipc) for use.
+
+
+
+
+
+
+
+This function is deprecated, and may be removed from a future release.
+It is no longer necessary to explicitly register transports.
+
+
+
+
diff --git a/man/tip/nng_listen.3.html b/man/tip/nng_listen.3.html
index aa2f3ebd..f63d5157 100644
--- a/man/tip/nng_listen.3.html
+++ b/man/tip/nng_listen.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_listen(3)
---
nng_listen(3)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nng/nng.h>
-
+#include <nng/nng.h>
+
int nng_listen(nng_socket s, const char *url, nng_listener *lp, int flags);
@@ -35,7 +36,7 @@ the newly created listener is stored at the address indicated by lp.
Listeners are used to accept connections initiated by remote dialers.
-An incoming connection generally results in and
+An incoming connection generally results in an
nng_pipe object being created and attached to the socket s.
Unlike dialers, listeners generally can create many
pipes, which may be open concurrently.
diff --git a/man/tip/nng_listener.5.html b/man/tip/nng_listener.5.html
index afdb98a5..e8d51198 100644
--- a/man/tip/nng_listener.5.html
+++ b/man/tip/nng_listener.5.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_listener(5)
---
nng_listener(5)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nng/nng.h>
-
+#include <nng/nng.h>
+
typedef struct nng_listener_s nng_listener;
diff --git a/man/tip/nng_listener_close.3.html b/man/tip/nng_listener_close.3.html
index 9f897fdb..58aa2de5 100644
--- a/man/tip/nng_listener_close.3.html
+++ b/man/tip/nng_listener_close.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_listener_close(3)
---
nng_listener_close(3)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nng/nng.h>
-
+#include <nng/nng.h>
+
int nng_listener_close(nng_listener l);
diff --git a/man/tip/nng_listener_create.3.html b/man/tip/nng_listener_create.3.html
index 7353e963..7654aa16 100644
--- a/man/tip/nng_listener_create.3.html
+++ b/man/tip/nng_listener_create.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_listener_create(3)
---
nng_listener_create(3)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nng/nng.h>
-
+#include <nng/nng.h>
+
int nng_listener_create(nng_listener *listenerp, nng_socket s, const char *url);
diff --git a/man/tip/nng_listener_get.3.html b/man/tip/nng_listener_get.3.html
index b060d64e..93a7ee4f 100644
--- a/man/tip/nng_listener_get.3.html
+++ b/man/tip/nng_listener_get.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_listener_get(3)
---
nng_listener_get(3)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-
-int nng_listener_get(nng_listener l, const char *opt, void *val, size_t *valszp);
+#include <nng/nng.h>
+
+int nng_listener_get(nng_listener l, const char *opt, void *val, size_t *valszp);
int nng_listener_get_bool(nng_listener l, const char *opt, bool *bvalp);
@@ -28,13 +29,13 @@ layout: manpage_v2
int nng_listener_get_ptr(nng_listener l, const char *opt, void **ptr);
-int nng_listener_get_size(nng_listener l, const char *opt, size_t *zp);
+int nng_listener_get_size(nng_listener l, const char *opt, size_t *zp);
int nng_listener_get_addr(nng_listener l, const char *opt, nng_sockaddr *sap);
int nng_listener_get_string(nng_listener l, const char *opt, char **strp);
-int nng_listener_get_uint64(nng_listener l, const char *opt, uint64_t *u64p);
+int nng_listener_get_uint64(nng_listener l, const char *opt, uint64_t *u64p);
@@ -49,8 +50,7 @@ The actual options that may be retrieved in this way
vary, and many are documented in nng_options(5).
-Additionally some transport-specific options and protocol-specific options
-are documented with the transports and protocols themselves.
+Additionally some transport-specific options are documented with the transports themselves.
Forms
diff --git a/man/tip/nng_listener_getopt.3.html b/man/tip/nng_listener_getopt.3.html
index 823a78f5..d0049b84 100644
--- a/man/tip/nng_listener_getopt.3.html
+++ b/man/tip/nng_listener_getopt.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_listener_getopt(3)
---
nng_listener_getopt(3)
@@ -16,9 +17,9 @@ layout: manpage_v2
-#include <nng/nng.h>
-
-int nng_listener_getopt(nng_listener l, const char *opt, void *val, size_t *valszp);
+#include <nng/nng.h>
+
+int nng_listener_getopt(nng_listener l, const char *opt, void *val, size_t *valszp);
int nng_listener_getopt_bool(nng_listener l, const char *opt, bool *bvalp);
@@ -28,13 +29,13 @@ layout: manpage_v2
int nng_listener_getopt_ptr(nng_listener l, const char *opt, void **ptr);
-int nng_listener_getopt_size(nng_listener l, const char *opt, size_t *zp);
+int nng_listener_getopt_size(nng_listener l, const char *opt, size_t *zp);
int nng_listener_getopt_sockaddr(nng_listener l, const char *opt, nng_sockaddr *sap);
int nng_listener_getopt_string(nng_listener l, const char *opt, char **strp);
-int nng_listener_getopt_uint64(nng_listener l, const char *opt, uint64_t *u64p);
+int nng_listener_getopt_uint64(nng_listener l, const char *opt, uint64_t *u64p);
@@ -42,14 +43,15 @@ layout: manpage_v2
DESCRIPTION
-
+
-
+
These functions are deprecated. Please see nng_listener_get.
+They may not be present if the library was built with NNG_ELIDE_DEPRECATED.
@@ -61,8 +63,8 @@ The actual options that may be retrieved in this way
vary, and many are documented in nng_options(5).
-Additionally some transport-specific options and protocol-specific options
-are documented with the transports and protocols themselves.
+Additionally some transport-specific options
+are documented with the transports themselves.
Forms
diff --git a/man/tip/nng_listener_id.3.html b/man/tip/nng_listener_id.3.html
index c48e8ce6..23233dc9 100644
--- a/man/tip/nng_listener_id.3.html
+++ b/man/tip/nng_listener_id.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_listener_id(3)
---
nng_listener_id(3)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nng/nng.h>
-
+#include <nng/nng.h>
+
int nng_listener_id(nng_listener l);
diff --git a/man/tip/nng_listener_set.3.html b/man/tip/nng_listener_set.3.html
index 79f09af6..4e769a25 100644
--- a/man/tip/nng_listener_set.3.html
+++ b/man/tip/nng_listener_set.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_listener_set(3)
---
nng_listener_set(3)
@@ -16,10 +17,10 @@ layout: manpage_v2
-#include <nng/nng.h>
-
-int nng_listener_set(nng_listener l, const char *opt, const void *val,
- size_t valsz);
+#include <nng/nng.h>
+
+int nng_listener_set(nng_listener l, const char *opt, const void *val,
+ size_t valsz);
int nng_listener_set_bool(nng_listener l, const char *opt, bool bval);
@@ -29,11 +30,11 @@ layout: manpage_v2
int nng_listener_set_ptr(nng_listener l, const char *opt, void *ptr);
-int nng_listener_set_size(nng_listener l, const char *opt, size_t z);
+int nng_listener_set_size(nng_listener l, const char *opt, size_t z);
int nng_listener_set_string(nng_listener l, const char *opt, const char *str);
-int nng_listener_set_uint64(nng_listener l, const char *opt, uint64_t u64);
+int nng_listener_set_uint64(nng_listener l, const char *opt, uint64_t u64);
@@ -48,8 +49,7 @@ The actual options that may be configured in this way
vary, and many are documented in nng_options(5).
-Additionally some transport-specific options and protocol-specific options
-are documented with the transports and protocols themselves.
+Additionally some transport-specific options are documented with the transports themselves.
diff --git a/man/tip/nng_listener_setopt.3.html b/man/tip/nng_listener_setopt.3.html
index 19ef85b1..93cf96a7 100644
--- a/man/tip/nng_listener_setopt.3.html
+++ b/man/tip/nng_listener_setopt.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_listener_setopt(3)
---
nng_listener_setopt(3)
@@ -16,11 +17,11 @@ layout: manpage_v2
-#include <nng/nng.h>
-
+#include <nng/nng.h>
+
int nng_listener_setopt(nng_listener l, const char *opt, const void *val,
- size_t valsz);
-
+ size_t valsz);
+
int nng_listener_setopt_bool(nng_listener l, const char *opt, bool bval);
int nng_listener_setopt_int(nng_listener l, const char *opt, int ival);
@@ -29,11 +30,11 @@ layout: manpage_v2
int nng_listener_setopt_ptr(nng_listener l, const char *opt, void *ptr);
-int nng_listener_setopt_size(nng_listener l, const char *opt, size_t z);
+int nng_listener_setopt_size(nng_listener l, const char *opt, size_t z);
int nng_listener_setopt_string(nng_listener l, const char *opt, const char *str);
-int nng_listener_setopt_uint64(nng_listener l, const char *opt, uint64_t u64);
+int nng_listener_setopt_uint64(nng_listener l, const char *opt, uint64_t u64);
@@ -41,14 +42,15 @@ layout: manpage_v2
DESCRIPTION
-
+
-
+
These functions are deprecated. Please see nng_listener_set.
+They may not be present if the library was built with NNG_ELIDE_DEPRECATED.
@@ -60,8 +62,8 @@ The actual options that may be configured in this way
vary, and many are documented in nng_options(5).
-Additionally some transport-specific options and protocol-specific options
-are documented with the transports and protocols themselves.
+Additionally some transport-specific options
+are documented with the transports themselves.
diff --git a/man/tip/nng_listener_start.3.html b/man/tip/nng_listener_start.3.html
index 6cfd2858..9bed3250 100644
--- a/man/tip/nng_listener_start.3.html
+++ b/man/tip/nng_listener_start.3.html
@@ -1,6 +1,7 @@
---
version: tip
layout: manpage_v2
+title: nng_listener_start(3)
---
nng_listener_start(3)
@@ -16,8 +17,8 @@ layout: manpage_v2
-#include <nng/nng.h>
-
+