[riot-notifications] [RIOT-OS/RIOT] sock_dtls: provide getter function for UDP sock (#14149)

Martine Lenders notifications at github.com
Tue May 26 21:32:36 CEST 2020

@miri64 commented on this pull request.

> @@ -259,6 +259,12 @@ int sock_dtls_create(sock_dtls_t *sock, sock_udp_t *udp_sock,
     return 0;
+sock_udp_t *sock_dtls_get_udp_sock(sock_dtls_t *sock)
+    assert(sock);
+    return sock->udp_sock;

Also if, for whatever reason an implementation needs to do more complicated things than just referencing a member, it would be screwed.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200526/4721fa4b/attachment.htm>

More information about the notifications mailing list