#include <nng/nng.h> #include <nng/supplemental/tcp/tcp.h> typedef struct nng_tcp_s nng_tcp;
nng_tcp represents a connected stream.
TCP stream objects can be used to send or receive data.
|Most NNG applications should not use this, but instead use the nng_tcp(7) transport instead.|
TCP 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