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

benpicco notifications at github.com
Wed May 27 16:47:23 CEST 2020


@benpicco commented on this pull request.



> @@ -116,7 +123,35 @@ static int _event(struct dtls_context_t *ctx, session_t *session,
             break;
     }
 #endif  /* ENABLE_DEBUG */
-    mbox_put(&sock->mbox, &msg);
+    if (code != DTLS_EVENT_CONNECT) {
+        mbox_put(&sock->mbox, &msg);
+    }
+#ifdef SOCK_HAS_ASYNC
+    if (sock->async_cb != NULL) {
+        switch (code) {
+            case DTLS_ALERT_CLOSE_NOTIFY:

When will this event occur?

-- 
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#pullrequestreview-419292172
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200527/815f9115/attachment.htm>


More information about the notifications mailing list