summaryrefslogtreecommitdiff
path: root/docs/ref/old/nng_tran_register.adoc
blob: a1af0864045a371f3763d222ae283f097bdcd6b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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.