#include <nng/nng.h> #include <nng/supplemental/tls/tls.h> typedef struct nng_tls_s nng_tls;
nng_tls represents a connected stream.
TLS stream objects can be used to send or receive data, and
provide transport level security via cryptography over a TCP connected
|Most NNG applications should not use this, but instead use the nng_tls(7) transport instead.|
TLS connections are byte streams, and are “reliable” in that data will not be delivered out of order, or with portions missing.
When the connection is no longer needed, it should be freed with
It is possible to close the connection, without freeing it, by