aboutsummaryrefslogtreecommitdiff
path: root/src/sp/protocol/pair1
diff options
context:
space:
mode:
authorJon Gjengset <jon.gjengset@helsing.ai>2025-10-04 20:59:35 -0400
committerGitHub <noreply@github.com>2025-10-04 17:59:35 -0700
commit05d06eff66ad0fffa1e26cde1278144196ac37f3 (patch)
tree9be88f2b8ae51b3fa3fca03e9352fae2ebf73427 /src/sp/protocol/pair1
parentcfcc004cff8f6e11c545070ed0e9ba0253227e44 (diff)
downloadnng-05d06eff66ad0fffa1e26cde1278144196ac37f3.tar.gz
nng-05d06eff66ad0fffa1e26cde1278144196ac37f3.tar.bz2
nng-05d06eff66ad0fffa1e26cde1278144196ac37f3.zip
adds nng_dialer_start_aio (#2163)
* adds nng_dialer_start_aio This change adds `nng_dialer_start_aio` (if you have a better name, I'm happy to change it), whose docs read: > `nng_dialer_start_aio` starts the endpoint dialing asynchronously. > This is only possible if the dialer is not already dialing. Unlike > `nng_dialer_start`, this accepts an AIO such that the caller can learn > when the dialing eventually succeeds or fails. The supplied AIO must > have been initialized, and is only triggered with the result of the > first dial attempt. This new function makes it possible for applications to perform a non-blocking dial, but still later be notified of the result of that dial. Arguably, this obviates the need for `NNG_FLAG_NONBLOCK` in `dialer_start` altogether, but no need to break backwards compatibility. There is technically a functional change here, which is that the "Starting dialer for socket" message now gets printed _before_ the dial is complete in the blocking case, rather than after. It's possible to change this if we're willing to make the code slightly more complicated, but given it says "Starting", not "Started", this change felt fine.
Diffstat (limited to 'src/sp/protocol/pair1')
0 files changed, 0 insertions, 0 deletions