aboutsummaryrefslogtreecommitdiff
path: root/src/platform/posix/posix_pollq_select.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2025-10-26 10:02:33 -0700
committerGarrett D'Amore <garrett@damore.org>2025-10-26 10:02:33 -0700
commit72b96ad6925634e1b4efa775ffbed436b0a29abd (patch)
treeaca1508cbc9fa89597fae7e059263725983d6485 /src/platform/posix/posix_pollq_select.h
parente0cb4377cc4d6fe50514e0b297e174fdde001bb6 (diff)
downloadnng-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_pollq_select.h')
-rw-r--r--src/platform/posix/posix_pollq_select.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/platform/posix/posix_pollq_select.h b/src/platform/posix/posix_pollq_select.h
index 012f10a0..4f59c007 100644
--- a/src/platform/posix/posix_pollq_select.h
+++ b/src/platform/posix/posix_pollq_select.h
@@ -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>
//
// This software is supplied under the terms of the MIT License, a
@@ -11,6 +11,11 @@
#ifndef PLATFORM_POSIX_POLLQ_SELECT_H
#define PLATFORM_POSIX_POLLQ_SELECT_H
+#include "../../core/platform.h"
+
+typedef struct nni_posix_pfd nni_posix_pfd;
+typedef void (*nni_posix_pfd_cb)(void *, unsigned);
+
// nni_posix_pfd is the handle used by the poller. It's internals are private
// to the poller.
struct nni_posix_pfd {