From 0bd3a9f51ce5800ad023ee548a90f91726ef0e88 Mon Sep 17 00:00:00 2001
From: gdamore NNG_ENOTSUP.
Only version 0 of this protocol is supported. (At the time of writing, no other versions of this protocol have been defined.)
The following protocol-specific options are available.
+The following protocol-specific option is 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.
-
-This option is a byte array. Thus if you use
-nng_socket_set_string the NUL terminator byte will
-be included in the topic.
-If that isn’t desired, consider using
-nng_socket_set and using strlen of the topic
-as the topic size.
-
-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.
NNG_OPT_SUB_PREFNEW: bool) true (the default), the subscriber will make room in the queue by removing the oldest message.
-When false, the subscriber will reject messages if the message queue does not have room.
-false, the subscriber will reject messages if the message queue does not have room.
The SUB protocol has no protocol-specific headers.
-- cgit v1.2.3-70-g09d2