From 2cefe6c4433c57b76b7bd4db3d889594963ceaf2 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 26 Oct 2017 15:34:29 -0700 Subject: man page updates for 0.0.0 --- man/v0.0.0/README.html | 3 +- man/v0.0.0/nng.html | 10 +- man/v0.0.0/nng_close.html | 5 +- man/v0.0.0/nng_inproc.html | 5 +- man/v0.0.0/nng_pub.html | 5 +- man/v0.0.0/nng_sub.html | 660 +++++++++++++++++++++++++++++++++++++++++++ man/v0.0.0/nng_zerotier.html | 5 +- 7 files changed, 674 insertions(+), 19 deletions(-) create mode 100644 man/v0.0.0/nng_sub.html diff --git a/man/v0.0.0/README.html b/man/v0.0.0/README.html index c27c9fc4..b4faa40d 100644 --- a/man/v0.0.0/README.html +++ b/man/v0.0.0/README.html @@ -1,6 +1,5 @@ --- -version: 0.0.0 -layout: default +version: 0.0.0\nlayout: default --- diff --git a/man/v0.0.0/nng.html b/man/v0.0.0/nng.html index df405b45..9fafee90 100644 --- a/man/v0.0.0/nng.html +++ b/man/v0.0.0/nng.html @@ -1,6 +1,5 @@ --- -version: 0.0.0 -layout: default +version: 0.0.0\nlayout: default --- @@ -471,9 +470,10 @@ to a lesser extent, new protocols.

The nng library is wire compatible with the SP protocols described in -the nanomsg project; projects using libnanomsg can inter-operate with +the nanomsg project; projects using +libnanomsg can inter-operate with nng as well as other conforming implementations. (One such implementation -is the mangos. Applications using nng +is mangos.) Applications using nng which wish to communicate with older libraries must ensure that they only use protocols or transports offered by the earlier library.

@@ -575,7 +575,7 @@ Copyright 2017 Capitar IT Group BV

diff --git a/man/v0.0.0/nng_close.html b/man/v0.0.0/nng_close.html index de2310cf..866a5f8f 100644 --- a/man/v0.0.0/nng_close.html +++ b/man/v0.0.0/nng_close.html @@ -1,6 +1,5 @@ --- -version: 0.0.0 -layout: default +version: 0.0.0\nlayout: default --- @@ -595,7 +594,7 @@ Copyright 2017 Capitar IT Group BV

diff --git a/man/v0.0.0/nng_inproc.html b/man/v0.0.0/nng_inproc.html index bb407933..55cf983b 100644 --- a/man/v0.0.0/nng_inproc.html +++ b/man/v0.0.0/nng_inproc.html @@ -1,6 +1,5 @@ --- -version: 0.0.0 -layout: default +version: 0.0.0\nlayout: default --- @@ -624,7 +623,7 @@ Copyright 2017 Capitar IT Group BV

diff --git a/man/v0.0.0/nng_pub.html b/man/v0.0.0/nng_pub.html index f8e3acb8..40660b53 100644 --- a/man/v0.0.0/nng_pub.html +++ b/man/v0.0.0/nng_pub.html @@ -1,6 +1,5 @@ --- -version: 0.0.0 -layout: default +version: 0.0.0\nlayout: default --- @@ -623,7 +622,7 @@ Copyright 2017 Capitar IT Group BV

diff --git a/man/v0.0.0/nng_sub.html b/man/v0.0.0/nng_sub.html new file mode 100644 index 00000000..ef13aa43 --- /dev/null +++ b/man/v0.0.0/nng_sub.html @@ -0,0 +1,660 @@ +--- +version: 0.0.0\nlayout: default +--- + + + + + + + + +nng_sub(7) + + + + + + + +
+
+

SYNOPSIS

+
+
+
+
#include <nng/protocol/pubsub/pubsub.h>
+
+#define NNG_PROTO_SUB_V0 33
+#define NNG_PROTO_SUB NNG_PROTO_SUB_V0
+
+int nng_sub_open(nng_socket *s);
+int nng_sub0_open (nng_socket *s);
+
+
+
+
+
+

DESCRIPTION

+
+
+

The nng_sub protocol is one half of a publisher/subscriber pattern. +In this pattern, a publisher sends data, which is broadcast to all +subscribers. The subscribing applications only see the data to which +they have subscribed.

+
+
+

The nng_sub protocol is the subscriber side, and the +nng_pub(7) protocol is the publisher side.

+
+
+ + + + + +
+ + +In this implementation, the publisher delivers all messages to all +subscribers. The subscribers maintain their own subscriptions, and filter +them locally. Thus, this pattern should not be used in an attempt to +reduce bandwidth consumption. +
+
+
+

The topics that subscribers subscribe to is just the first part of +the message body. Applications should construct their messages +accordingly.

+
+
+

Socket Operations

+
+

The nng_sub_open() call creates a subscriber socket. This socket +may be used to receive messages, but is unable to send them. Attempts +to send messages will result in NNG_ENOTSUP.

+
+
+
+

Protocol Versions

+
+

Only version 0 of this protocol is supported. (At the time of writing, +no other versions of this protocol have been defined.)

+
+
+
+

Protocol Options

+
+

The following protocol-specific options are available.

+
+
+
+
NNG_OPT_SUB_SUBSCRIBE
+
+

This option registers a topic that the subscriber is interested in. +The option is write-only, and takes an array of bytes, of arbitrary size. +Each incoming message is checked against the list of subscribed topics. +If the body begins with the entire set of bytes in the topic, then the +message is accepted. If no topic matches, then the message is +discarded.

+
+ + + + + +
+ + +To receive all messages, an empty topic (zero length) can be used. +
+
+
+
NNG_OPT_SUB_UNSUBSCRIBE
+
+

This option, also read-only, removes a topic from the subscription list. +Note that if the topic was not previously subscribed to with +NNG_OPT_SUB_SUBSCRIBE then an NNG_ENOENT error will result.

+
+
+
+
+
+

Protocol Headers

+
+

The nng_sub protocol has no protocol-specific headers.

+
+
+
+
+
+

AUTHORS

+ +
+
+

SEE ALSO

+ +
+
+ +
+
+

Copyright 2017 Garrett D’Amore
+Copyright 2017 Capitar IT Group BV

+
+
+

This document is supplied under the terms of the +MIT License.

+
+
+
+
+ + + diff --git a/man/v0.0.0/nng_zerotier.html b/man/v0.0.0/nng_zerotier.html index 44fd4715..dfd7eb02 100644 --- a/man/v0.0.0/nng_zerotier.html +++ b/man/v0.0.0/nng_zerotier.html @@ -1,6 +1,5 @@ --- -version: 0.0.0 -layout: default +version: 0.0.0\nlayout: default --- @@ -810,7 +809,7 @@ Copyright 2017 Capitar IT Group BV

-- cgit v1.2.3-70-g09d2