= nng_dialer(5) // // 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_dialer - dialer == SYNOPSIS [source, c] ----------- #include typedef uint32_t nng_dialer; ----------- == DESCRIPTION (((dialer))) An `nng_dialer` is a handle to a "`dialer`" object, which is responsible for creating a single <> at a time by establishing an outgoing connection. If the connection is broken, or fails, the dialer object will automatically attempt to reconnect, and will keep doing so until the dialer or socket is destroyed. Dialer objects are created by the <> or <> functions, and are always "`owned`" by a single <>. TIP: A given <> may have multiple dialer objects, multiple <> objects, or even some of both. TIP: The client/server relationship described by dialer/listener is completely orthogonal to any similar relationship in the protocols. For example, a <> socket may use a dialer to connect to a listener on an <> socket. This orthogonality can lead to innovative solutions to otherwise challenging communications problems. Dialer objects may be destroyed by the <> function. They are also closed when their "`owning`" socket is closed. == SEE ALSO <>, <>, <>, <>, <>, <>, <>, <>, <>, <>