SYNOPSIS
#include <nng/nng.h>
#include <nng/supplemental/tcp/tcp.h>
int nng_tcp_listener_alloc(nng_tcp_listener *lp);
DESCRIPTION
The nng_tcp_listener_alloc() allocates a TCP listener, which can be used
to accept incoming connections over TCP, and stores a pointer to it
it in the location referenced by lp.
RETURN VALUES
This function returns 0 on success, and non-zero otherwise.
ERRORS
NNG_ENOMEM
|
Insufficient free memory exists. |