--- version: tip layout: refman --- nng_ipc_dialer_dial(3ipc)

SYNOPSIS

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

void nng_ipc_dialer_dial(nng_ipc_dialer *d, const nng_sockaddr *sa, nng_aio *aio);

DESCRIPTION

The nng_ipc_dialer_dial() attempts to establish an IPC connection to the remote peer identified by sa, using the dialer d. The operation is completed asynchronously, using aio.

The address sa must be in the NNG_AF_IPC family, and have a valid path for IPC.

If a connection is successfully established, the aio will have the resulting nng_ipc stored as its first output. (See nng_aio_get_output().)

RETURN VALUES

None.

ERRORS

NNG_EADDRINVAL

The address specified is invalid.

NNG_ECANCELED

The operation was aborted.

NNG_ECLOSED

The dialer is closed.

NNG_ECONNREFUSED

The connection was refused by the server.

NNG_ECONNRESET

The connection was reset by the server.

NNG_ENOMEM

Insufficient free memory exists.

NNG_EPERM

Insufficient permission to access the IPC path.

SEE ALSO