#include <nanomsg/nn.h>
+#include <nanomsg/nn.h>
void *nn_allocmsg(size_t size, int type);
From cc2ee6efc09a0e50164e04430e77ccfb5b4c59fd Mon Sep 17 00:00:00 2001
From: "Staysail Systems, Inc"
+
+
+
+
+
+
+
| + | command line access to Scalability Protocols |
+
| + | nanomsg next generation library |
+
| + | abort asynchronous I/O operation |
+
| + | allocate asynchronous I/O handle |
+
| + | begin asynchronous I/O operation |
+
| + | cancel asynchronous I/O operation |
+
| + | return number of bytes transferred |
+
| + | defer asynchronous I/O operation |
+
| + | finish asynchronous I/O operation |
+
| + | free asynchronous I/O handle |
+
| + | return input parameter |
+
| + | get message from asynchronous receive |
+
| + | return output result |
+
| + | return result of asynchronous operation |
+
| + | set input parameter |
+
| + | set scatter/gather vector |
+
| + | set message for asynchronous send |
+
| + | set output result |
+
| + | set asynchronous I/O timeout |
+
| + | stop asynchronous I/O operation |
+
| + | wait for asynchronous I/O operation |
+
| + | allocate memory |
+
| + | create bus socket |
+
| + | close socket |
+
| + | close context |
+
| + | get context option |
+
| + | get context option |
+
| + | return numeric context identifier |
+
| + | create context |
+
| + | receive message using context asynchronously |
+
| + | send message using context asynchronously |
+
| + | set context option |
+
| + | set context option |
+
| + | message forwarding device |
+
| + | create and start dialer |
+
| + | close dialer |
+
| + | create dialer |
+
| + | get dialer option |
+
| + | get dialer option |
+
| + | return numeric dialer identifier |
+
| + | set dialer option |
+
| + | set dialer option |
+
| + | start dialer |
+
| + | free memory |
+
| + | get socket option |
+
| + | register inproc transport |
+
| + | register ipc transport |
+
| + | create and start listener |
+
| + | close listener |
+
| + | create listener |
+
| + | get listener option |
+
| + | get listener option |
+
| + | return numeric listener identifier |
+
| + | set listener option |
+
| + | set listener option |
+
| + | start listener |
+
| + | allocate a message |
+
| + | append to message body |
+
| + | return message body |
+
| + | remove data from end of message body |
+
| + | clear message body content |
+
| + | duplicate a message |
+
| + | free a message |
+
| + | get pipe for message |
+
| + | return message header |
+
| + | append to message header |
+
| + | remove data from end of message header |
+
| + | clear message header |
+
| + | prepend to message header |
+
| + | return message header length |
+
| + | remove data from start of message header |
+
| + | prepend to message body |
+
| + | return message body length |
+
| + | reallocate a message |
+
| + | set pipe for message |
+
| + | remove data from start of message body |
+
| + | create pair socket |
+
| + | close pipe |
+
| + | return dialer that created pipe |
+
| + | get pipe option |
+
| + | get pipe option |
+
| + | return numeric pipe identifier |
+
| + | return listener that created pipe |
+
| + | register pipe notification callback |
+
| + | return owning socket for pipe |
+
| + | create pub socket |
+
| + | create pull socket |
+
| + | create push socket |
+
| + | recv data |
+
| + | receive message asynchronously |
+
| + | recv message |
+
| + | create rep socket |
+
| + | create req socket |
+
| + | create respondent socket |
+
| + | send data |
+
| + | send message asynchronously |
+
| + | send message |
+
| + | set socket option |
+
| + | sleep asynchronously |
+
| + | get socket option |
+
| + | return numeric socket identifier |
+
| + | set socket option |
+
| + | get child statistic |
+
| + | get statistic description |
+
| + | find statistic by name |
+
| + | find dialer statistics |
+
| + | find listener statistics |
+
| + | find socket statistics |
+
| + | get statistic name |
+
| + | get next statistic |
+
| + | get statistic string value |
+
| + | get statistic timestamp |
+
| + | get statistic type |
+
| + | get statistic unit |
+
| + | get statistic value |
+
| + | free statistics snapshot |
+
| + | get statistics snapshot |
+
| + | duplicate string |
+
| + | return an error description |
+
| + | free memory |
+
| + | create sub socket |
+
| + | create surveyor socket |
+
| + | register tcp transport |
+
| + | register tls transport |
+
| + | clone URL structure |
+
| + | free a URL structure |
+
| + | create URL structure from a string |
+
| + | report library version |
+
| + | register WebSocket transport |
+
| + | register WebSocket secure transport |
+
| + | register ZeroTier transport |
+
| - - | -
-While this is discouraged for long term use, as a transition aid
-applications may use the value returned by the
-nng_socket_id() in these functions just like a
-socket descriptor (as if the socket were opened via
-nn_socket()).
-This sort of API intermixing should only be used during transition from
-the legacy API to the new API.
- |
++ + | +
+While this is discouraged for long term use, as a transition aid
+applications may use the value returned by the
+nng_socket_id() in these functions just like a
+socket descriptor (as if the socket were opened via
+nn_socket()).
+This sort of API intermixing should only be used during transition from
+the legacy API to the new API.
+ |
+
| + | allocate message (compatible API) |
+
| + | accept connections from remote peers (compatible API) |
+
| + | close socket (compatible API) |
+
| + | message control data (compatible API) |
+
| + | connect to remote peer (compatible API) |
+
| + | create forwarding device (compatible API) |
+
| + | return most recent error (compatible API) |
+
| + | free message (compatible API) |
+
| + | get statistic (stub) |
+
| + | get socket option (compatible API) |
+
| + | poll sockets (compatible API) |
+
| + | reallocate message (compatible API) |
+
| + | receive data (compatible API) |
+
| + | receive message (compatible API) |
+
| + | send data (compatible API) |
+
| + | send message (compatible API) |
+
| + | set socket option (compatible API) |
+
| + | shut down endpoint (compatible API) |
+
| + | create socket (compatible API) |
+
| + | return message for error (compatible API) |
+
| + | terminate library (compatible API) |
+
| + | compatibility with nanomsg 1.0 |
+
This section documents supplemental HTTP (HyperText Transport Protocol) +support functions that are available.
+These functions can be used in conjunction with the +WebSocket transport for Scalability Protocols, or they +may be used to construct other types of applications that communicate +using HTTP.
+It is also possible to combine the two, such that an HTTP server providing +static or dynamic content can also be used to host one or more Scalability +Protocols sockets.
+| + + | ++At present NNG only supports HTTP/1.0 and HTTP/1.1. + | +
| + | allocate HTTP client |
+
| + | establish HTTP client connection |
+
| + | free HTTP client |
+
| + | get HTTP client TLS configuration |
+
| + | set HTTP client TLS configuration |
+
| + | perform one HTTP transaction |
+
| + | close HTTP connection |
+
| + | read from HTTP connection |
+
| + | read all from HTTP connection |
+
| + | read HTTP request |
+
| + | read HTTP response |
+
| + | perform one HTTP transaction on connection |
+
| + | write to HTTP connection |
+
| + | write all to HTTP connection |
+
| + | write HTTP request |
+
| + | write HTTP response |
+
| + | allocate HTTP server handler |
+
| + | set HTTP handler to collect request body |
+
| + | free HTTP server handler |
+
| + | return extra data for HTTP handler |
+
| + | set extra data for HTTP handler |
+
| + | set host for HTTP handler |
+
| + | set HTTP handler method |
+
| + | set HTTP handler to match trees |
+
| + | hijack HTTP server connection |
+
| + | add HTTP request header |
+
| + | allocate HTTP request structure |
+
| + | copy HTTP request body |
+
| + | delete HTTP request header |
+
| + | free HTTP request structure |
+
| + | get HTTP request body |
+
| + | return HTTP request header |
+
| + | return HTTP request method |
+
| + | return HTTP request URI |
+
| + | return HTTP request protocol version |
+
| + | reset HTTP request structure |
+
| + | set HTTP request body |
+
| + | set HTTP request header |
+
| + | set HTTP request method |
+
| + | set HTTP request URI |
+
| + | set HTTP request protocol version |
+
| + | add HTTP response header |
+
| + | allocate HTTP response structure |
+
| + | allocate HTTP error response |
+
| + | copy HTTP response body |
+
| + | delete HTTP response header |
+
| + | free HTTP response structure |
+
| + | get HTTP response body |
+
| + | return HTTP response header |
+
| + | return HTTP response reason |
+
| + | return HTTP status code |
+
| + | return HTTP response protocol version |
+
| + | reset HTTP response structure |
+
| + | set HTTP response body |
+
| + | set HTTP response header |
+
| + | set HTTP response reason |
This section documents supplemental HTTP (HyperText Transport Protocol) -support functions that are available.
-These functions can be used in conjunction with the -WebSocket transport for Scalability Protocols, or they -may be used to construct other types of applications that communicate -using HTTP.
-It is also possible to combine the two, such that an HTTP server providing -static or dynamic content can also be used to host one or more Scalability -Protocols sockets.
-| - - | --At present NNG only supports HTTP/1.0 and HTTP/1.1. - | ++ | set HTTP response status |
| + | set HTTP response protocol version |
+
| + | add HTTP server handler |
+
| + | delete HTTP server handler |
+
| + | get HTTP server address |
+
| + | get HTTP server TLS configuration |
+
| + | get and hold HTTP server instance |
+
| + | release HTTP server instance |
+
| + | use HTTP server error page |
+
| + | set custom HTTP error file |
+
| + | set custom HTTP error page |
+
| + | set HTTP server TLS configuration |
+
| + | start HTTP server |
+
| + | stop HTTP server |
+
| + | close byte stream |
+
| + | allocate byte stream dialer |
+
| + | close byte stream dialer |
+
| + | initiate outgoing byte stream connection |
+
| + | free byte stream dialer |
+
| + | get option from byte stream dialer |
+
| + | set option on byte stream dialer |
+
| + | free byte stream |
+
| + | get option from byte stream |
+
| + | accept incoming byte stream connection |
+
| + | allocate byte stream listener |
+
| + | close byte stream listener |
+
| + | free byte stream listener |
+
| + | get option from byte stream listener |
+
| + | bind listener to configured address |
+
| + | set option on byte stream listener |
+
| + | receive from byte stream |
+
| + | send to byte stream |
+
| + | set option on byte stream |
+
| + | get time |
+
| + | allocate condition variable |
+
| + | free condition variable |
+
| + | wait for condition or timeout |
+
| + | wait for condition |
+
| + | wake all waiters |
+
| + | wake one waiter |
+
| + | sleep milliseconds |
+
| + | allocate mutex |
+
| + | free mutex |
+
| + | lock mutex |
+
| + | unlock mutex |
+
| + | parse command line options |
+
| + | get random number |
+
| + | create thread |
+
| + | reap thread |
+
| + | allocate TLS configuration object |
+
| + | configure authentication mode |
+
| + | configure certificate authority certificate chain |
+
| + | load certificate authority from file |
+
| + | load own certificate and key from file |
+
| + | deallocate a TLS configuration object |
+
| + | hold TLS configuration object |
+
| + | configure own certificate and key |
+
| + | configure remote server name |
+
| + | configure TLS version |
+
| + | TLS engine description |
+
| + | TLS FIPS 140-2 mode indicator |
+
| + | TLS engine name |
+
| + | asynchronous I/O handle |
+
| + | protocol context |
+
| + | dialer |
+
| + | relative time in milliseconds |
+
| + | scatter/gather element |
+
| + | IPC-specific options |
+
| + | listener |
+
| + | message |
+
| + | socket, dialer, listener, and pipe options |
+
| + | communications pipe |
+
| + | socket address |
+
| + | IPv4 socket address |
+
| + | IPv6 socket address |
+
| + | inproc socket address |
+
| + | IPC socket address |
+
| + | ZeroTier socket address |
+
| + | socket handle |
+
| + | statistic |
+
| + | byte stream |
+
| + | byte stream dialer |
+
| + | byte stream listener |
+
| + | TCP-specific options |
+
| + | TLS configuration object |
+
| + | TLS engine implementation |
+
| + | TLS-specific options |
+
| + | Universal Resource Locator object |
+
| + | nanomsg next generation |
+
| + | bus protocol |
+
| + | intra-process transport |
+
| + | IPC transport |
+
| + | pair protocol |
+
| + | publisher protocol |
+
| + | pull protocol |
+
| + | push protocol |
+
| + | reply protocol |
+
| + | request protocol |
+
| + | respondent protocol |
+
| + | subscriber protocol |
+
| + | surveyor protocol |
+
| + | TCP/IP transport |
+
| + | TLS transport |
+
| + | WebSocket transport |
+
| + | ZeroTier transport |
+
#include <nanomsg/nn.h>
+#include <nanomsg/nn.h>
void *nn_allocmsg(size_t size, int type);
#include <nanomsg/nn.h>
+#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;
diff --git a/man/tip/nn_connect.3compat.html b/man/tip/nn_connect.3compat.html
index 7f5f2869..f26f22ea 100644
--- a/man/tip/nn_connect.3compat.html
+++ b/man/tip/nn_connect.3compat.html
@@ -16,7 +16,7 @@ layout: manpage_v2
-#include <nanomsg/nn.h>
+#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 37f31b3c..9e760c05 100644
--- a/man/tip/nn_device.3compat.html
+++ b/man/tip/nn_device.3compat.html
@@ -16,7 +16,7 @@ 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 5526aec9..98d38740 100644
--- a/man/tip/nn_errno.3compat.html
+++ b/man/tip/nn_errno.3compat.html
@@ -16,7 +16,7 @@ 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 49658300..7692fd38 100644
--- a/man/tip/nn_freemsg.3compat.html
+++ b/man/tip/nn_freemsg.3compat.html
@@ -16,7 +16,7 @@ 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 d32e7f61..e9479612 100644
--- a/man/tip/nn_get_statistic.3compat.html
+++ b/man/tip/nn_get_statistic.3compat.html
@@ -16,7 +16,7 @@ layout: manpage_v2
-#include <nanomsg/nn.h>
+#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 2aa24379..ffa090d8 100644
--- a/man/tip/nn_getsockopt.3compat.html
+++ b/man/tip/nn_getsockopt.3compat.html
@@ -16,7 +16,7 @@ layout: manpage_v2
-#include <nanomsg/nn.h>
+#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 4759646f..bbe2873c 100644
--- a/man/tip/nn_poll.3compat.html
+++ b/man/tip/nn_poll.3compat.html
@@ -16,7 +16,7 @@ layout: manpage_v2
-#include <nanomsg/nn.h>
+#include <nanomsg/nn.h>
#define NN_POLLIN 1
#define NN_POLLOUT 2
diff --git a/man/tip/nn_reallocmsg.3compat.html b/man/tip/nn_reallocmsg.3compat.html
index 45a39d14..f7dad297 100644
--- a/man/tip/nn_reallocmsg.3compat.html
+++ b/man/tip/nn_reallocmsg.3compat.html
@@ -16,7 +16,7 @@ layout: manpage_v2
-#include <nanomsg/nn.h>
+#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 225bf01e..a1b20555 100644
--- a/man/tip/nn_recv.3compat.html
+++ b/man/tip/nn_recv.3compat.html
@@ -16,7 +16,7 @@ layout: manpage_v2
-#include <nanomsg/nn.h>
+#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 63540b04..307ef831 100644
--- a/man/tip/nn_recvmsg.3compat.html
+++ b/man/tip/nn_recvmsg.3compat.html
@@ -16,7 +16,7 @@ layout: manpage_v2
-#include <nanomsg/nn.h>
+#include <nanomsg/nn.h>
int nn_recvmsg(int sock, struct nn_msghdr *hdr, int flags);
@@ -55,7 +55,7 @@ following definition:
-struct nn_iovec {
+struct nn_iovec {
void * iov_base;
size_t iov_len;
};
diff --git a/man/tip/nn_send.3compat.html b/man/tip/nn_send.3compat.html
index 25587e19..a8168423 100644
--- a/man/tip/nn_send.3compat.html
+++ b/man/tip/nn_send.3compat.html
@@ -16,7 +16,7 @@ layout: manpage_v2
-#include <nanomsg/nn.h>
+#include <nanomsg/nn.h>
int nn_send(int sock, const void *data, size_t size, int flags)
diff --git a/man/tip/nn_sendmsg.3compat.html b/man/tip/nn_sendmsg.3compat.html
index 397b92bf..a8491da2 100644
--- a/man/tip/nn_sendmsg.3compat.html
+++ b/man/tip/nn_sendmsg.3compat.html
@@ -16,7 +16,7 @@ layout: manpage_v2
-#include <nanomsg/nn.h>
+#include <nanomsg/nn.h>
int nn_sendmsg(int sock, const struct nn_msghdr *hdr, int flags);
@@ -55,7 +55,7 @@ following definition:
-struct nn_iovec {
+struct nn_iovec {
void * iov_base;
size_t iov_len;
};
diff --git a/man/tip/nn_setsockopt.3compat.html b/man/tip/nn_setsockopt.3compat.html
index 4d498065..4825187a 100644
--- a/man/tip/nn_setsockopt.3compat.html
+++ b/man/tip/nn_setsockopt.3compat.html
@@ -16,7 +16,7 @@ layout: manpage_v2
-#include <nanomsg/nn.h>
+#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 146ec7ed..19c7ed7b 100644
--- a/man/tip/nn_shutdown.3compat.html
+++ b/man/tip/nn_shutdown.3compat.html
@@ -16,7 +16,7 @@ layout: manpage_v2
-#include <nanomsg/nn.h>
+#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 1ea906e6..f00c962f 100644
--- a/man/tip/nn_socket.3compat.html
+++ b/man/tip/nn_socket.3compat.html
@@ -16,7 +16,7 @@ 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 716f83c3..0bc21fb8 100644
--- a/man/tip/nn_strerror.3compat.html
+++ b/man/tip/nn_strerror.3compat.html
@@ -16,7 +16,7 @@ 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 b4b5fbba..8309a440 100644
--- a/man/tip/nn_term.3compat.html
+++ b/man/tip/nn_term.3compat.html
@@ -16,7 +16,7 @@ layout: manpage_v2
-#include <nanomsg/nn.h>
+#include <nanomsg/nn.h>
void nn_term(void);
diff --git a/man/tip/nng_aio.5.html b/man/tip/nng_aio.5.html
index 939c3323..97d52a25 100644
--- a/man/tip/nng_aio.5.html
+++ b/man/tip/nng_aio.5.html
@@ -16,7 +16,7 @@ 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 ebf2c101..9cc3defd 100644
--- a/man/tip/nng_aio_abort.3.html
+++ b/man/tip/nng_aio_abort.3.html
@@ -16,7 +16,7 @@ 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 d689e843..b6bb44d4 100644
--- a/man/tip/nng_aio_alloc.3.html
+++ b/man/tip/nng_aio_alloc.3.html
@@ -16,7 +16,7 @@ layout: manpage_v2
-#include <nng/nng.h>
+#include <nng/nng.h>
int nng_aio_alloc(nng_aio **aiop, void (*callb)(void *), void *arg);
diff --git a/man/tip/nng_aio_begin.3.html b/man/tip/nng_aio_begin.3.html
index e27f4558..e016d13a 100644
--- a/man/tip/nng_aio_begin.3.html
+++ b/man/tip/nng_aio_begin.3.html
@@ -16,7 +16,7 @@ layout: manpage_v2
-#include <nng/nng.h>
+#include <nng/nng.h>
bool nng_aio_begin(nng_aio *aio);
diff --git a/man/tip/nng_aio_cancel.3.html b/man/tip/nng_aio_cancel.3.html
index 6e377148..6b45e968 100644
--- a/man/tip/nng_aio_cancel.3.html
+++ b/man/tip/nng_aio_cancel.3.html
@@ -16,7 +16,7 @@ layout: manpage_v2
-#include <nng/nng.h>
+#include <nng/nng.h>
void nng_aio_cancel(nng_aio *aio);
diff --git a/man/tip/nng_aio_count.3.html b/man/tip/nng_aio_count.3.html
index 78db8a0b..9d0bd202 100644
--- a/man/tip/nng_aio_count.3.html
+++ b/man/tip/nng_aio_count.3.html
@@ -16,7 +16,7 @@ layout: manpage_v2
-#include <nng/nng.h>
+#include <nng/nng.h>
size_t nng_aio_count(nng_aio *aio);
diff --git a/man/tip/nng_aio_defer.3.html b/man/tip/nng_aio_defer.3.html
index 86ae2a97..7d97f2fb 100644
--- a/man/tip/nng_aio_defer.3.html
+++ b/man/tip/nng_aio_defer.3.html
@@ -16,7 +16,7 @@ layout: manpage_v2
-#include <nng/nng.h>
+#include <nng/nng.h>
typedef void (*nng_aio_cancelfn)(nng_aio *aio, void *arg, int err);
diff --git a/man/tip/nng_aio_finish.3.html b/man/tip/nng_aio_finish.3.html
index 2ddd6b7d..ed6cc091 100644
--- a/man/tip/nng_aio_finish.3.html
+++ b/man/tip/nng_aio_finish.3.html
@@ -16,7 +16,7 @@ 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 752782fd..a0efceb5 100644
--- a/man/tip/nng_aio_free.3.html
+++ b/man/tip/nng_aio_free.3.html
@@ -16,7 +16,7 @@ layout: manpage_v2
-#include <nng/nng.h>
+#include <nng/nng.h>
void nng_aio_free(nng_aio *aio);
diff --git a/man/tip/nng_aio_get_input.3.html b/man/tip/nng_aio_get_input.3.html
index 499927bf..e75c3554 100644
--- a/man/tip/nng_aio_get_input.3.html
+++ b/man/tip/nng_aio_get_input.3.html
@@ -16,7 +16,7 @@ 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 8a7b59a3..21ad688e 100644
--- a/man/tip/nng_aio_get_msg.3.html
+++ b/man/tip/nng_aio_get_msg.3.html
@@ -16,7 +16,7 @@ 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 66938d17..b473e967 100644
--- a/man/tip/nng_aio_get_output.3.html
+++ b/man/tip/nng_aio_get_output.3.html
@@ -16,7 +16,7 @@ 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 78d90ded..fb93f13f 100644
--- a/man/tip/nng_aio_result.3.html
+++ b/man/tip/nng_aio_result.3.html
@@ -16,7 +16,7 @@ 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 bd6f7226..027b6bc2 100644
--- a/man/tip/nng_aio_set_input.3.html
+++ b/man/tip/nng_aio_set_input.3.html
@@ -16,7 +16,7 @@ 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 db563106..ba739b89 100644
--- a/man/tip/nng_aio_set_iov.3.html
+++ b/man/tip/nng_aio_set_iov.3.html
@@ -16,7 +16,7 @@ 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);
@@ -35,7 +35,7 @@ structures, which have the following definition:
- typedef struct nng_iov {
+ typedef struct nng_iov {
void * iov_buf;
size_t iov_len;
};
diff --git a/man/tip/nng_aio_set_msg.3.html b/man/tip/nng_aio_set_msg.3.html
index 268602f9..3b4a02e2 100644
--- a/man/tip/nng_aio_set_msg.3.html
+++ b/man/tip/nng_aio_set_msg.3.html
@@ -16,7 +16,7 @@ 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 12102169..5b532394 100644
--- a/man/tip/nng_aio_set_output.3.html
+++ b/man/tip/nng_aio_set_output.3.html
@@ -16,7 +16,7 @@ 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 4065785f..b237177b 100644
--- a/man/tip/nng_aio_set_timeout.3.html
+++ b/man/tip/nng_aio_set_timeout.3.html
@@ -16,7 +16,7 @@ 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);
diff --git a/man/tip/nng_aio_stop.3.html b/man/tip/nng_aio_stop.3.html
index 931c7d61..de8df3c4 100644
--- a/man/tip/nng_aio_stop.3.html
+++ b/man/tip/nng_aio_stop.3.html
@@ -16,7 +16,7 @@ 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 7a2c9913..3759d4d6 100644
--- a/man/tip/nng_aio_wait.3.html
+++ b/man/tip/nng_aio_wait.3.html
@@ -16,7 +16,7 @@ layout: manpage_v2
-#include <nng/nng.h>
+#include <nng/nng.h>
void nng_aio_wait(nng_aio *aio);
diff --git a/man/tip/nng_alloc.3.html b/man/tip/nng_alloc.3.html
index 76ec11fd..67decfe3 100644
--- a/man/tip/nng_alloc.3.html
+++ b/man/tip/nng_alloc.3.html
@@ -16,7 +16,7 @@ layout: manpage_v2
-#include <nng/nng.h>
+#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 b837bbcb..78797a6f 100644
--- a/man/tip/nng_bus.7.html
+++ b/man/tip/nng_bus.7.html
@@ -16,7 +16,7 @@ layout: manpage_v2
-#include <nng/protocol/bus0/bus.h>
+#include <nng/protocol/bus0/bus.h>
diff --git a/man/tip/nng_bus_open.3.html b/man/tip/nng_bus_open.3.html
index 6e0955cc..f66ba632 100644
--- a/man/tip/nng_bus_open.3.html
+++ b/man/tip/nng_bus_open.3.html
@@ -16,7 +16,7 @@ layout: manpage_v2
-#include <nng/nng.h>
+#include <nng/nng.h>
#include <nng/protocol/bus0/bus.h>
int nng_bus0_open(nng_socket *s);
diff --git a/man/tip/nng_clock.3supp.html b/man/tip/nng_clock.3supp.html
index 39e8538b..b7351f56 100644
--- a/man/tip/nng_clock.3supp.html
+++ b/man/tip/nng_clock.3supp.html
@@ -16,7 +16,7 @@ layout: manpage_v2
-#include <nng/nng.h>
+#include <nng/nng.h>
#include <nng/supplemental/util/platform.h>
typedef uint64_t nng_time;
diff --git a/man/tip/nng_close.3.html b/man/tip/nng_close.3.html
index d8add99d..81901d70 100644
--- a/man/tip/nng_close.3.html
+++ b/man/tip/nng_close.3.html
@@ -16,7 +16,7 @@ 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 89d35201..7e7c7112 100644
--- a/man/tip/nng_compat.3compat.html
+++ b/man/tip/nng_compat.3compat.html
@@ -16,7 +16,7 @@ layout: manpage_v2
-#include <nanomsg/nn.h>
+#include <nanomsg/nn.h>
#include <nanomsg/bus.h>
#include <nanomsg/pair.h>
@@ -121,7 +121,7 @@ For example, instead of:
-#include <nanomsg/nn.h>
+#include <nanomsg/nn.h>
#include <nanomsg/reqrep.h>
@@ -130,7 +130,7 @@ For example, instead of:
-#include <nng/compat/nanomsg/nn.h>
+#include <nng/compat/nanomsg/nn.h>
#include <nng/compat/nanomsg/reqrep.h>
diff --git a/man/tip/nng_ctx.5.html b/man/tip/nng_ctx.5.html
index 8765b197..e601c848 100644
--- a/man/tip/nng_ctx.5.html
+++ b/man/tip/nng_ctx.5.html
@@ -16,7 +16,7 @@ layout: manpage_v2
-#include <nng/nng.h>
+#include <nng/nng.h>
typedef struct nng_ctx_s nng_ctx
@@ -156,7 +156,7 @@ to the sender.
-
+
struct echo_context {
nng_ctx ctx;
nng_aio *aio;
@@ -201,7 +201,7 @@ or nng_listen().
-#define CONCURRENCY 1024
+#define CONCURRENCY 1024
echo_context ecs[CONCURRENCY];
diff --git a/man/tip/nng_ctx_close.3.html b/man/tip/nng_ctx_close.3.html
index 341d04cc..f024ed61 100644
--- a/man/tip/nng_ctx_close.3.html
+++ b/man/tip/nng_ctx_close.3.html
@@ -16,7 +16,7 @@ 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 99d41342..e0575644 100644
--- a/man/tip/nng_ctx_get.3.html
+++ b/man/tip/nng_ctx_get.3.html
@@ -16,7 +16,7 @@ layout: manpage_v2
-#include <nng/nng.h>
+#include <nng/nng.h>
int nng_ctx_get(nng_ctx ctx, const char *opt, void *val, size_t *valszp);
diff --git a/man/tip/nng_ctx_getopt.3.html b/man/tip/nng_ctx_getopt.3.html
index 38f40175..8cfe15e6 100644
--- a/man/tip/nng_ctx_getopt.3.html
+++ b/man/tip/nng_ctx_getopt.3.html
@@ -16,7 +16,7 @@ layout: manpage_v2
-#include <nng/nng.h>
+#include <nng/nng.h>
int nng_ctx_getopt(nng_ctx ctx, const char *opt, void *val, size_t *valszp);
diff --git a/man/tip/nng_ctx_id.3.html b/man/tip/nng_ctx_id.3.html
index 17444aca..f6948f57 100644
--- a/man/tip/nng_ctx_id.3.html
+++ b/man/tip/nng_ctx_id.3.html
@@ -16,7 +16,7 @@ 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 8c120eab..8a81e32d 100644
--- a/man/tip/nng_ctx_open.3.html
+++ b/man/tip/nng_ctx_open.3.html
@@ -16,7 +16,7 @@ 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 9c950fe1..3e01d810 100644
--- a/man/tip/nng_ctx_recv.3.html
+++ b/man/tip/nng_ctx_recv.3.html
@@ -16,7 +16,7 @@ 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_send.3.html b/man/tip/nng_ctx_send.3.html
index a1d38c9d..5b64e811 100644
--- a/man/tip/nng_ctx_send.3.html
+++ b/man/tip/nng_ctx_send.3.html
@@ -16,7 +16,7 @@ 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_set.3.html b/man/tip/nng_ctx_set.3.html
index 6b4c001e..3f1adae7 100644
--- a/man/tip/nng_ctx_set.3.html
+++ b/man/tip/nng_ctx_set.3.html
@@ -16,7 +16,7 @@ layout: manpage_v2
-#include <nng/nng.h>
+#include <nng/nng.h>
int nng_ctx_set(nng_ctx ctx, const char *opt, const void *val, size_t valsz);
diff --git a/man/tip/nng_ctx_setopt.3.html b/man/tip/nng_ctx_setopt.3.html
index 7dbaee8d..04d1163f 100644
--- a/man/tip/nng_ctx_setopt.3.html
+++ b/man/tip/nng_ctx_setopt.3.html
@@ -16,7 +16,7 @@ layout: manpage_v2
-#include <nng/nng.h>
+#include <nng/nng.h>
int nng_ctx_setopt(nng_ctx ctx, const char *opt, const void *val, size_t valsz);
diff --git a/man/tip/nng_cv_alloc.3supp.html b/man/tip/nng_cv_alloc.3supp.html
index bde0cb0e..69f608a5 100644
--- a/man/tip/nng_cv_alloc.3supp.html
+++ b/man/tip/nng_cv_alloc.3supp.html
@@ -16,7 +16,7 @@ layout: manpage_v2
-#include <nng/nng.h>
+#include <nng/nng.h>
#include <nng/supplemental/util/platform.h>
typedef struct nng_cv nng_cv;
diff --git a/man/tip/nng_cv_free.3supp.html b/man/tip/nng_cv_free.3supp.html
index 160a7b6e..aca2ce03 100644
--- a/man/tip/nng_cv_free.3supp.html
+++ b/man/tip/nng_cv_free.3supp.html
@@ -16,7 +16,7 @@ layout: manpage_v2
-#include <nng/nng.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 dbd7f8eb..1c3848ea 100644
--- a/man/tip/nng_cv_until.3supp.html
+++ b/man/tip/nng_cv_until.3supp.html
@@ -16,7 +16,7 @@ layout: manpage_v2
-#include <nng/nng.h>
+#include <nng/nng.h>
#include <nng/supplemental/util/platform.h>
int nng_cv_until(nng_cv *cv, nng_time when);
@@ -66,7 +66,7 @@ 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) {
@@ -81,7 +81,7 @@ tests for true.
Example 2: Signaling the condition
- nng_mtx_lock(m);
+ nng_mtx_lock(m);
condition_true = true;
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 a720fb4a..3692861d 100644
--- a/man/tip/nng_cv_wait.3supp.html
+++ b/man/tip/nng_cv_wait.3supp.html
@@ -16,7 +16,7 @@ layout: manpage_v2
-#include <nng/nng.h>
+#include <nng/nng.h>
#include <nng/supplemental/util/platform.h>
void nng_cv_wait(nng_cv *cv);
@@ -65,7 +65,7 @@ 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);
@@ -77,7 +77,7 @@ tests for true.
Example 2: Signaling the condition
- nng_mtx_lock(m);
+ nng_mtx_lock(m);
condition_true = true;
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 78946f2f..97d04f8a 100644
--- a/man/tip/nng_cv_wake.3supp.html
+++ b/man/tip/nng_cv_wake.3supp.html
@@ -16,7 +16,7 @@ layout: manpage_v2
-#include <nng/nng.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 fe8b1694..5178d8da 100644
--- a/man/tip/nng_cv_wake1.3supp.html
+++ b/man/tip/nng_cv_wake1.3supp.html
@@ -16,7 +16,7 @@ layout: manpage_v2
-#include <nng/nng.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 271bfd21..d74722be 100644
--- a/man/tip/nng_device.3.html
+++ b/man/tip/nng_device.3.html
@@ -16,7 +16,7 @@ layout: manpage_v2
-#include <nng/nng.h>
+