[riot-notifications] [RIOT-OS/RIOT] net: add CoRE RD lookup client implementation (#10222)

Aiman Ismail notifications at github.com
Thu Apr 4 11:01:39 CEST 2019


pokgak commented on this pull request.



> +int cord_lc_rd_init(cord_lc_rd_t *rd, const sock_udp_ep_t *remote);
+
+/**
+ * @brief Raw lookup for registered resources at a RD server
+ *
+ * @param[in]  rd               the target RD server
+ * @param[in]  content_format   data format wanted from RD server
+ * @param[out] result           buffer holding the raw response
+ * @param[in]  maxlen           max length of @p result
+ *
+ * @return length of result on success
+ * @return CORD_LC_NORSC if there is no resource lookup interface at @p rd
+ * @return CORD_LC_TIMEOUT if lookup timed out
+ * @return CORD_LC_ERR on any other internal error
+ */
+ssize_t cord_lc_res_raw(const cord_lc_rd_t *rd, uint8_t content_format,

Yup, lots of the code in this PR can be replaced by clif e.g. clif_t instead of cord_lc_res_t and cord_lc_ep_t as both of them is just links actually. I think there's a lot more than can replaced.

-- 
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/10222#discussion_r272082192
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190404/402c0a2b/attachment.html>


More information about the notifications mailing list