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

benpicco notifications at github.com
Wed May 27 00:27:50 CEST 2020

@benpicco commented on this pull request.

> +static sock_udp_t _udp_sock;
+static sock_dtls_t _dtls_sock;
+static event_timeout_t _timeouter;
+static event_t _timeout = { .handler = _timeout_handler };
+static bool _sending = false;
+static void _timeout_handler(event_t *event)
+    (void)event;
+    puts("Session handshake timed out");
+    sock_dtls_close(&_dtls_sock);
+    sock_udp_close(&_udp_sock);
+    _sending = false;
+static _close_sock(sock_dtls_t *sock)

static void _close_sock(sock_dtls_t *sock)

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

More information about the notifications mailing list