From 2fbfd7e5c3ad245de2c905720eb8d9d5b27b6739 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 27 Dec 2021 23:10:29 -0800 Subject: Introduce nng_device_aio(). This function is like nng_device(), but runs asynchronously. Also, this fixes #1503 nng_device causes nng_close to blocking --- src/core/device.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/device.h') diff --git a/src/core/device.h b/src/core/device.h index 973a4cb7..8d11aeb8 100644 --- a/src/core/device.h +++ b/src/core/device.h @@ -1,5 +1,5 @@ // -// Copyright 2017 Garrett D'Amore +// Copyright 2021 Staysail Systems, Inc. // // This software is supplied under the terms of the MIT License, a // copy of which should be located in the distribution where this @@ -14,6 +14,6 @@ // It works in both directions. Arguably we should build versions of this // that are unidirectional, and we could extend this API with user-defined // filtering functions. -extern int nni_device(nni_sock *, nni_sock *); +extern void nni_device(nni_aio *aio, nni_sock *, nni_sock *); #endif // CORE_DEVICE_H -- cgit v1.2.3-70-g09d2