aboutsummaryrefslogtreecommitdiff
path: root/src/core/platform.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-06-02 23:33:27 -0700
committerGitHub <noreply@github.com>2024-06-02 23:33:27 -0700
commit603282f28e6f2e1b32d3a587d8de761f9f94ad45 (patch)
treeb90b5f4c057979524e6b4a12a74742c7da25c484 /src/core/platform.h
parent890d4899138ff497a48ba4aaa2385b3ed2b84ac4 (diff)
downloadnng-603282f28e6f2e1b32d3a587d8de761f9f94ad45.tar.gz
nng-603282f28e6f2e1b32d3a587d8de761f9f94ad45.tar.bz2
nng-603282f28e6f2e1b32d3a587d8de761f9f94ad45.zip
UDP: Introduce an experimental (undocumented for now) public API for UDP. (#1838)
This exposes the UDP methods as nng_ methods, and adds support for Multicast Membership, which is useful in a variety of situations. No documentation is provided, and applications should consider thios API experimental.
Diffstat (limited to 'src/core/platform.h')
-rw-r--r--src/core/platform.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/platform.h b/src/core/platform.h
index 53ef53af..d7a88238 100644
--- a/src/core/platform.h
+++ b/src/core/platform.h
@@ -407,6 +407,10 @@ extern void nni_plat_udp_send(nni_plat_udp *, nni_aio *);
// NNG_EMSGSIZE results.
extern void nni_plat_udp_recv(nni_plat_udp *, nni_aio *);
+// nni_plat_udp_membership provides for joining or leaving multicast groups.
+extern int nni_plat_udp_multicast_membership(
+ nni_plat_udp *udp, nni_sockaddr *sa, bool join);
+
//
// Notification Pipe Pairs
//