aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-10-12 14:31:35 -0700
committerGarrett D'Amore <garrett@damore.org>2024-10-12 14:31:35 -0700
commit782d8177d14fe39409a87ec5f9ac725dad2322ac (patch)
tree1699ccabdd64c35ac7c11f6af924b5c2ee912825 /include
parent0f7ad003c7b357d5e5a8fb10753732c8460eef15 (diff)
downloadnng-782d8177d14fe39409a87ec5f9ac725dad2322ac.tar.gz
nng-782d8177d14fe39409a87ec5f9ac725dad2322ac.tar.bz2
nng-782d8177d14fe39409a87ec5f9ac725dad2322ac.zip
UDP: add some statistics
Diffstat (limited to 'include')
-rw-r--r--include/nng/nng.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/nng/nng.h b/include/nng/nng.h
index 17965010..1b3eae20 100644
--- a/include/nng/nng.h
+++ b/include/nng/nng.h
@@ -818,6 +818,8 @@ NNG_DECL nng_listener nng_pipe_listener(nng_pipe);
// low order 16 bits will be set. This is provided in native byte order,
// which makes it more convenient than using the NNG_OPT_LOCADDR option.
#define NNG_OPT_TCP_BOUND_PORT "tcp-bound-port"
+// UDP alias for convenience uses the same value
+#define NNG_OPT_UDP_BOUND_PORT NNG_OPT_TCP_BOUND_PORT
// IPC options. These will largely vary depending on the platform,
// as POSIX systems have very different options than Windows.