From 603282f28e6f2e1b32d3a587d8de761f9f94ad45 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 2 Jun 2024 23:33:27 -0700 Subject: 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. --- src/core/platform.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core') 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 // -- cgit v1.2.3-70-g09d2