From e7977ae777ac62928041e2a07f6eddc69eb4fc40 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 26 Apr 2025 18:25:48 -0700 Subject: TLS: break up the TLS layer a bit to refactor for DTLS. This allows us to break the assumption that the bottom half is TCP, or even an nng_stream, since the DTLS layer will use a totally different layer. Only nng_stream neeeds to support dial and listen. Also: UDP: Make the sockaddr arguments to open const. Also: Align the IPv6 address in the sockaddr (this allows for efficient 64-bit or even 128-bit operations on these values.) --- src/core/platform.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core') diff --git a/src/core/platform.h b/src/core/platform.h index bdb8beb4..3b6f4db5 100644 --- a/src/core/platform.h +++ b/src/core/platform.h @@ -357,7 +357,7 @@ typedef struct nni_plat_udp nni_plat_udp; // address specified in the AIO. The remote address is // not used. The resulting nni_plat_udp structure is returned in the // aio's a_pipe. -extern int nni_plat_udp_open(nni_plat_udp **, nni_sockaddr *); +extern int nni_plat_udp_open(nni_plat_udp **, const nni_sockaddr *); // nni_plat_udp_close closes the underlying UDP socket. extern void nni_plat_udp_close(nni_plat_udp *); -- cgit v1.2.3-70-g09d2