[riot-notifications] [RIOT-OS/RIOT] tinydtls: add `sock_async` support for `sock_dtls` (#12907)

Martine Lenders notifications at github.com
Tue May 26 20:37:03 CEST 2020


> BTW: IMHO `sock_dtls_close()` should also close the UDP sock to
> 
>     1. prevent accidental unencrypted communication, once the DTLS sock is closed
> 
>     2. Not needing to keep the pointer stored in the application as I currently do.

After re-reading the documentation I think I agree with what is written [there](https://doc.riot-os.org/group__net__sock__dtls.html#details):

> sock_dtls_create() and sock_dtls_close() only manages the DTLS layer. That means we still have to clean up the created UDP sock from before by calling sock_udp_close() on our UDP sock in case of error or we reached the end of the application.

So I go for the getter solution instead.

-- 
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/12907#issuecomment-634203050
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200526/c14dd907/attachment.htm>


More information about the notifications mailing list