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

Martine Lenders notifications at github.com
Tue May 26 17:02:55 CEST 2020


@miri64 commented on this pull request.



> +                sock_async_flags_t flags = SOCK_ASYNC_CONN_RDY;
+
+                if (cib_avail(&sock->mbox.cib)) {
+                    if (sock->buf) {
+                        flags |= SOCK_ASYNC_MSG_RECV;
+                    }
+                    else {
+                        flags |= SOCK_ASYNC_CONN_RECV;
+                    }
+                }
+                sock->async_cb(sock, SOCK_ASYNC_CONN_RDY,
+                               sock->async_cb_arg);

Oops, fixed!

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


More information about the notifications mailing list