diff options
| author | Garrett D'Amore <garrett@damore.org> | 2025-04-27 22:02:04 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2025-04-27 22:02:04 -0700 |
| commit | 03f812ccb2876aacd10e589f996b5ec9e0133d5b (patch) | |
| tree | 8393333b23528c3641a39ed81e44188ddfbe507a /src/core/sockfd.h | |
| parent | c5b07415cc3a6a7960cb3ca2a2aaf70b1cbe3469 (diff) | |
| download | nng-03f812ccb2876aacd10e589f996b5ec9e0133d5b.tar.gz nng-03f812ccb2876aacd10e589f996b5ec9e0133d5b.tar.bz2 nng-03f812ccb2876aacd10e589f996b5ec9e0133d5b.zip | |
More nng_err -- this time for dialer and listener allocations.
Diffstat (limited to 'src/core/sockfd.h')
| -rw-r--r-- | src/core/sockfd.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/sockfd.h b/src/core/sockfd.h index ca37f0e1..8985c009 100644 --- a/src/core/sockfd.h +++ b/src/core/sockfd.h @@ -1,5 +1,5 @@ // -// Copyright 2023 Staysail Systems, Inc. <info@staysail.tech> +// Copyright 2025 Staysail Systems, Inc. <info@staysail.tech> // // This software is supplied under the terms of the MIT License, a // copy of which should be located in the distribution where this @@ -16,9 +16,9 @@ // an arbitrary byte stream file descriptor (UNIX) or handle (Windows) // with a nng_stream. typedef struct nni_sfd_conn nni_sfd_conn; -extern int nni_sfd_conn_alloc(nni_sfd_conn **cp, int fd); -extern int nni_sfd_dialer_alloc(nng_stream_dialer **, const nng_url *); -extern int nni_sfd_listener_alloc(nng_stream_listener **, const nng_url *); +extern nng_err nni_sfd_conn_alloc(nni_sfd_conn **cp, int fd); +extern nng_err nni_sfd_dialer_alloc(nng_stream_dialer **, const nng_url *); +extern nng_err nni_sfd_listener_alloc(nng_stream_listener **, const nng_url *); // this is used to close a file descriptor, in case we cannot // create a connection (or if the listener is closed before the |
