diff options
Diffstat (limited to 'docs/ref/migrate')
| -rw-r--r-- | docs/ref/migrate/nanomsg.md | 2 | ||||
| -rw-r--r-- | docs/ref/migrate/nng1.md | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/docs/ref/migrate/nanomsg.md b/docs/ref/migrate/nanomsg.md index 695f771b..67e6505a 100644 --- a/docs/ref/migrate/nanomsg.md +++ b/docs/ref/migrate/nanomsg.md @@ -84,6 +84,8 @@ The following options are changed. | `NN_IPV4ONLY` | None | Use URL such as `tcp4://` to obtain this functionality. | | `NN_SOCKET_NAME` | `NNG_OPT_SOCKNAME` | | `NN_MAXTTL` | `NNG_OPT_MAXTTL` | +| `NN_SUB_SUBSCRIBE` | `nng_sub0_socket_subscribe` | No longer an option, use a function call. | +| `NN_SUB_UNSUBSCRIBE` | `nng_sub0_socket_unsubscribe` | No longer an option, use a function call. | ## Error Codes diff --git a/docs/ref/migrate/nng1.md b/docs/ref/migrate/nng1.md index 3004b880..65af2382 100644 --- a/docs/ref/migrate/nng1.md +++ b/docs/ref/migrate/nng1.md @@ -80,6 +80,13 @@ matching the actual wire protocol values, instead of `int`. The `NNG_OPT_RAW` option has aso been replaced by a function, `nng_socket_raw`. +## Subscriptions + +The `NNG_OPT_SUB_SUBSCRIBE` and `NNG_OPT_SUB_UNSUBCRIBE` options have been replaced by +the following functions: `nng_sub0_socket_subscribe`, `nng_sub0_socket_unsubscribe`, +`nng_sub0_ctx_subscribe` and `nng_sub0_ctx_unsubscribe`. These functions, like the options +they replace, are only applicable to SUB sockets. + ## Statistics Use Constified Pointers A number of the statistics functions take, or return, `const nng_stat *` instead |
