summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/old/nng_tran_register.adoc33
1 files changed, 33 insertions, 0 deletions
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.