From 175a87473a80b3376e0100900ba4e8d02fba4bf7 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 6 Apr 2024 11:36:55 -0700 Subject: transport registration docs (deprecated) --- docs/ref/old/nng_tran_register.adoc | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 docs/ref/old/nng_tran_register.adoc (limited to 'docs/ref') diff --git a/docs/ref/old/nng_tran_register.adoc b/docs/ref/old/nng_tran_register.adoc new file mode 100644 index 00000000..a1af0864 --- /dev/null +++ b/docs/ref/old/nng_tran_register.adoc @@ -0,0 +1,33 @@ +## nng_tran_register (deprecated) + +Register transport. + +### Synopsis + +```c +int nng_inproc_register(void); +int nng_ipc_register(void); +int nng_tcp_register(void); +int nng_tls_register(void); +int nng_ws_register(void); +int nng_wss_register(void); +int nng_zt_register(void); +``` + +### Description + +These functions are deprecated. +They will initialize the library if not already initialized, but perform no other useful function. +They provided for compatibility, but may be removed in a future release.footnote:[If the library was built with ((`NNG_ELIDE_DEPRECATED`)) then these functions will not be present. +Functions referring to a transport will also not be present if the corresponding transport was not configured when the library was built.] + +Formerly they were used to register transports for use, but this is no longer necessary. + +### Return Values + +These function returns 0 on success, and non-zero otherwise. + +### Errors + +[horizontal] +`NNG_ENOMEM`:: Insufficient memory to initialize the library. -- cgit v1.2.3-70-g09d2