[riot-notifications] [RIOT-OS/RIOT] net/gcoap: support DTLS (#15549)
notifications at github.com
Wed May 26 16:39:56 CEST 2021
@benpicco commented on this pull request.
> +static void _tl_get_socket(coap_socket_t *sock)
+ sock->type = COAP_SOCKET_TYPE_DTLS;
+ sock->socket.dtls = &_sock_dtls;
+ sock->type = COAP_SOCKET_TYPE_UDP;
+ sock->socket.udp = &_sock_udp;
+static ssize_t _tl_send(coap_socket_t *sock, const void *data, size_t len,
+ const sock_udp_ep_t *remote)
+ int res;
I'm only talking about the client side - as a workaround for not having an explicit way to do a DTLS request, we could check if the destination port matches `CONFIG_GCOAPS_PORT`.
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