= nng_tcp_dialer_alloc(3tcp) // // Copyright 2018 Staysail Systems, Inc. // Copyright 2018 Capitar IT Group BV // // This document is supplied under the terms of the MIT License, a // copy of which should be located in the distribution where this // file was obtained (LICENSE.txt). A copy of the license may also be // found online at https://opensource.org/licenses/MIT. // == NAME nng_tcp_dialer_alloc - allocate TCP dialer == SYNOPSIS [source, c] ---- #include #include 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 [horizontal] `NNG_ENOMEM`:: Insufficient free memory exists. == SEE ALSO [.text-left] <>, <>, <>, <>, <>