nng_stream_dialer_dial(3str)
| NNG_STREAM_DIALER_DIAL(3str) | NNG Reference Manual | NNG_STREAM_DIALER_DIAL(3str) |
NAME
nng_stream_dialer_dial - initiate outgoing byte stream connection
SYNOPSIS
#include <nng/nng.h> void nng_stream_dialer_dial(nng_stream_dialer *d, nng_aio *aio);
DESCRIPTION
The nng_stream_dialer_dial() attempts to establish a connection to the remote peer for the dialer d. The operation is completed asynchronously, using aio.
Tip
The peer address is determined by the address specified using
nng_stream_dialer_alloc() or
nng_stream_dialer_alloc_url().
If a connection is successfully established, the aio will have the resulting nng_stream object stored as its first output. (See nng_aio_get_output().)
RETURN VALUES
None.
ERRORS
NNG_EADDRINVAL
NNG_ECANCELED
NNG_ECLOSED
NNG_ECONNREFUSED
NNG_ECONNRESET
NNG_ENOMEM
SEE ALSO
nng_strerror(3), nng_stream_dialer_alloc(3str), nng_stream_dialer_close(3str), nng_stream_dialer_free(3str), nng_aio(5), nng_stream(5), nng_stream_dialer(5)
| 2026-05-29 |
