[riot-notifications] [RIOT-OS/RIOT] net/gcoap: support DTLS (#15549)

benpicco notifications at github.com
Mon Jun 21 16:04:39 CEST 2021


@benpicco commented on this pull request.



> + * @brief   Coap socket types
+ */
+typedef enum {
+    COAP_SOCKET_TYPE_UNDEF = 0,
+    COAP_SOCKET_TYPE_UDP,
+    COAP_SOCKET_TYPE_DTLS
+} coap_socket_type_t;
+
+/**
+ * @brief   Coap socket to handle multiple transport types
+ */
+typedef struct {
+    coap_socket_type_t type;
+    union {
+        sock_udp_t *udp;
+#if IS_ACTIVE(CONFIG_GCOAP_ENABLE_DTLS) || defined(DOXYGEN)

also

```suggestion
#if IS_ACTIVE(MODULE_GCOAP_DTLS) || defined(DOXYGEN)
```



-- 
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/15549#pullrequestreview-688463345
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210621/146d5b47/attachment.htm>


More information about the notifications mailing list