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_pollq_kqueue.h | |
| 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_pollq_kqueue.h')
| -rw-r--r-- | src/platform/posix/posix_pollq_kqueue.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/platform/posix/posix_pollq_kqueue.h b/src/platform/posix/posix_pollq_kqueue.h index 69cf6dae..3959b5e6 100644 --- a/src/platform/posix/posix_pollq_kqueue.h +++ b/src/platform/posix/posix_pollq_kqueue.h @@ -11,6 +11,13 @@ #ifndef PLATFORM_POSIX_POLLQ_KQUEUE_H #define PLATFORM_POSIX_POLLQ_KQUEUE_H +#include "../../core/defs.h" +#include "../../core/list.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 { |
