[riot-notifications] [RIOT-OS/RIOT] sys: new sock submodule for DTLS (#11909)

Aiman Ismail notifications at github.com
Mon Jul 29 11:13:35 CEST 2019


pokgak commented on this pull request.



> + *
+ * @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

> [...] word it more generic, e.g. "[…], if the local endpoint of the UDP sock of @p sock is was not set".

I think this will do. This way there is no need to add to the parameter list, which is quite long already.

-- 
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/11909#discussion_r308128444
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190729/dc9f8e85/attachment.htm>


More information about the notifications mailing list