[riot-notifications] [RIOT-OS/RIOT] sock/async: add function to retrieve session object of current DTLS event (#15755)

Martine Lenders notifications at github.com
Thu Jan 21 13:50:03 CET 2021


@miri64 commented on this pull request.



>  
+    if (type & SOCK_ASYNC_CONN_RECV) {
         puts("Session handshake received");

Here and in the other event types that are not `SOCK_ASYNC_CONN_FIN` or `SOCK_ASYNC_CONN_RDY` (as well in the client), you could also use `expect(!sock_dtls_get_event_session(sock, &session))` to make this proper tests ;-).

-- 
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/15755#pullrequestreview-573294630
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210121/9406fcc2/attachment-0001.htm>


More information about the notifications mailing list