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

János Brodbeck notifications at github.com
Tue Jan 19 11:40:55 CET 2021


@janosbrodbeck commented on this pull request.



> + * @note Only available with @ref SOCK_HAS_ASYNC defined.
+ *       Should only be called within a DTLS event and only for the event
+ *       types @ref SOCK_ASYNC_CONN_RDY and @ref SOCK_ASYNC_CONN_FIN.

Totally forgot, sorry. Squashed the undo directly with the related commit. 

Regarding the return value. It would be nice to have it...but how?  The only idea I have for this currently is to also add (e.g.) a boolean to the socket object and set this boolean when a event occurs. So setting it for the CONN_RDY, CONN_FIN to available and for every other event to not available. Would that be sufficient or do you imagine it differently?

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


More information about the notifications mailing list