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

Martine Lenders notifications at github.com
Tue May 26 21:29:02 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;

Nope, this will lead to compile errors, ones the function is used by multiple objects. This is a public function of the `sock_dtls` interface accessing a member module-visible only to the `tinydtls` implementation of said interface. It's the same as e.g. `sock_udp_get_local()` ;-)

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/e5f7052f/attachment.htm>

More information about the notifications mailing list