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

János Brodbeck notifications at github.com
Mon Jun 28 14:05:19 CEST 2021


@janosbrodbeck 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)

True. Replaced `CONFIG_GCOAP_ENABLE_DTLS` completely with `IS_USED(MODULE_GCOAP_DTLS)`

-- 
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#discussion_r659725643
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210628/1f9e8c1f/attachment-0001.htm>


More information about the notifications mailing list