diff options
| author | Garrett D'Amore <garrett@damore.org> | 2025-10-26 10:02:33 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2025-10-26 10:02:33 -0700 |
| commit | 72b96ad6925634e1b4efa775ffbed436b0a29abd (patch) | |
| tree | aca1508cbc9fa89597fae7e059263725983d6485 /src/platform/posix/posix_tcpdial.c | |
| parent | e0cb4377cc4d6fe50514e0b297e174fdde001bb6 (diff) | |
| download | nng-72b96ad6925634e1b4efa775ffbed436b0a29abd.tar.gz nng-72b96ad6925634e1b4efa775ffbed436b0a29abd.tar.bz2 nng-72b96ad6925634e1b4efa775ffbed436b0a29abd.zip | |
NNG_OPT_BOUND_PORT replaces NNG_OPT_TCP/UDP_BOUND_PORT.
This is easier and agnostic about the underlying L3 protocol.
We plan to remove direct NNG_OPT_LOCADDR support from listeners
(and probably both NNG_OPT_LOCADDR and NNG_OPT_REMADDR have numbered
days left in their lifetime. They will be replaced with more direct
typed access functions as has been done for pipes already.)
While here fixed some include for IWYU in the POSIX platform.
Diffstat (limited to 'src/platform/posix/posix_tcpdial.c')
| -rw-r--r-- | src/platform/posix/posix_tcpdial.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/platform/posix/posix_tcpdial.c b/src/platform/posix/posix_tcpdial.c index 181a667f..12fa990f 100644 --- a/src/platform/posix/posix_tcpdial.c +++ b/src/platform/posix/posix_tcpdial.c @@ -1,5 +1,5 @@ // -// Copyright 2024 Staysail Systems, Inc. <info@staysail.tech> +// Copyright 2025 Staysail Systems, Inc. <info@staysail.tech> // Copyright 2018 Capitar IT Group BV <info@capitar.com> // Copyright 2018 Devolutions <info@devolutions.net> // @@ -9,8 +9,6 @@ // found online at https://opensource.org/licenses/MIT. // -#include "core/nng_impl.h" - #include <errno.h> #include <netinet/in.h> #include <string.h> @@ -21,10 +19,8 @@ #define SOCK_CLOEXEC 0 #endif -#include "posix_tcp.h" - #ifndef NNG_HAVE_INET6 -#ifdef HAVE_NNG_HAVE_INET6_BSD +#ifdef NNG_HAVE_INET6_BSD #define NNG_HAVE_INET6 #include <netinet6/in6.h> #else @@ -32,6 +28,14 @@ #endif #endif +#include "../../core/aio.h" +#include "../../core/defs.h" +#include "../../core/options.h" +#include "../../core/platform.h" +#include "../../core/refcnt.h" + +#include "posix_tcp.h" + struct nni_tcp_dialer { nni_list connq; // pending connections bool closed; |
