[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
Wed Jan 13 12:20:41 CET 2021

@janosbrodbeck commented on this pull request.

> @@ -87,6 +87,7 @@ static int _read(struct dtls_context_t *ctx, session_t *session, uint8_t *buf,
     sock->buffer.session = session;
     if (sock->async_cb != NULL) {
+        memcpy(&sock->async_cb_session, session, sizeof(session_t));

I have a branch with the pointer solution [here](https://github.com/janosbrodbeck/RIOT/tree/pr/dtls/get_event_session_pointer). I would prefer a solution with just a pointer. 

Or did I misunderstood you? :)

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/20210113/d02a4904/attachment.htm>

More information about the notifications mailing list