<p><b>@miri64</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/11909#discussion_r307608259">examples/dtls-sock/dtls-client.c</a>:</p>
<pre style='color:#555'>> + *
+ * @author      Aiman Ismail <muhammadaimanbin.ismail@haw-hamburg.de>
+ */
+
+#include <stdio.h>
+
+#include "net/sock/udp.h"
+#include "net/sock/dtls.h"
+#include "net/ipv6/addr.h"
+#include "net/credman.h"
+
+#include "client_keys.h"
+
+/* TinyDTLS WARNING check */
+#ifdef WITH_RIOT_SOCKETS
+#error TinyDTLS is set to use sockets but the app is configured for socks.
</pre>
<p>Please explain?</p>

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/11909#discussion_r307608450">sys/include/net/sock/dtls.h</a>:</p>
<pre style='color:#555'>> + *
+ * @param[in] sock      DTLS sock to listen to
+ */
+void sock_dtls_init_server(sock_dtls_t *sock);
+
+/**
+ * @brief Establish DTLS session to a server. Execute the handshake step in
+ *        DTLS.
+ *
+ * @param[in]  sock     DLTS sock to use
+ * @param[in]  ep       Endpoint to establish session with
+ * @param[out] remote   The established session, cannot be NULL
+ *
+ * @return  0 on success
+ * @return  value < 0 on other errors
+ * @return  -EADDRNOTAVAIL, if sock_udp_ep_t::local of @p sock->udp_sock is not
</pre>
<p><code>sock_udp_ep_t</code> does not have a member <code>local</code></p>

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/11909#discussion_r307608494">sys/include/net/sock/dtls.h</a>:</p>
<pre style='color:#555'>> + * @param[in] sock      DTLS sock to use.
+ * @param[out] remote   Remote DTLS session of the received data.
+ *                      Cannot be NULL.
+ * @param[out] data     Buffer where the data should be stored.
+ * @param[in] maxlen    Maximum memory available at @p data.
+ * @param[in] timeout   Timeout for receive in microseconds.
+ *                      If 0 and no data is available, the function returns
+ *                      immediately.
+ *                      May be SOCK_NO_TIMEOUT to wait until data
+ *                      is available.
+ *
+ * @note Function may block if data not available and @p timeout != 0
+ *
+ * @return The number of bytes received on success
+ * @return value < 0 on error
+ * @return  -EADDRNOTAVAIL, if sock_udp_ep_t::local of @p sock->udp_sock is not
</pre>
<p>Dito</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/11909?email_source=notifications&email_token=ABE7WYGXBYITM73DAQ4ILNTQBKNPVA5CNFSM4IGRA3OKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB7VFRCQ#pullrequestreview-267016330">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYCP7BTQEPNOZPJJELLQBKNPVANCNFSM4IGRA3OA">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYG3CWCU6NHYPZRFV2LQBKNPVA5CNFSM4IGRA3OKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB7VFRCQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/11909?email_source=notifications\u0026email_token=ABE7WYGXBYITM73DAQ4ILNTQBKNPVA5CNFSM4IGRA3OKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB7VFRCQ#pullrequestreview-267016330",
"url": "https://github.com/RIOT-OS/RIOT/pull/11909?email_source=notifications\u0026email_token=ABE7WYGXBYITM73DAQ4ILNTQBKNPVA5CNFSM4IGRA3OKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB7VFRCQ#pullrequestreview-267016330",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>