--- version: tip layout: refman --- nng_tcp_dialer_alloc(3tcp)

SYNOPSIS

#include <nng/nng.h>
#include <nng/supplemental/tcp/tcp.h>

int nng_tcp_dialer_alloc(nng_tcp_dialer *dp);

DESCRIPTION

The nng_tcp_dialer_alloc() allocates a TCP dialer, which can be used to create outgoing connections over TCP, and stores a pointer to it it in the location referenced by dp.

RETURN VALUES

This function returns 0 on success, and non-zero otherwise.

ERRORS

NNG_ENOMEM

Insufficient free memory exists.

SEE ALSO