[riot-notifications] [RIOT-OS/RIOT] sock_dtls: add timeout to sock_dtls_send and add sock_dtls_session_init (#14043)
notifications at github.com
Wed May 20 15:32:53 CEST 2020
> That seems too vague. Can we just define our own return code here e.g. EHANDSHAKE and set it to a value that is not used in POSIX return code e.g. `-3`?
Only the names are defined in POSIX, not the values, so no. You can of course use a defined errno, that is not used (e.g. `EXDEV`) and use it to provide a new define
#define SOCK_DTLS_HANDSHAKE (EXDEV)
(I used a non-negative `EXDEV`, so that `SOCK_DTLS_HANDSHAKE` is clearer to be <0 in the function doc).
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...
More information about the notifications