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

benpicco notifications at github.com
Tue May 26 21:35:41 CEST 2020


@benpicco 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;

Well of course I meant that then should also be in the header then 😉 

But yea if the contents of `sock_dtls_t` are private, then that’s the way to go.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/14149#discussion_r430658290
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200526/3fd9b4ac/attachment.htm>


More information about the notifications mailing list