Skip to content

Commit

Permalink
[docs] add otUdpSend() usage (#3220)
Browse files Browse the repository at this point in the history
  • Loading branch information
bukepo authored and jwhui committed Nov 2, 2018
1 parent e2abb40 commit e914c6a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/openthread/udp.h
Expand Up @@ -183,6 +183,13 @@ otError otUdpConnect(otUdpSocket *aSocket, otSockAddr *aSockName);
* @param[in] aMessage A pointer to a message buffer.
* @param[in] aMessageInfo A pointer to a message info structure.
*
* If the return value is OT_ERROR_NONE, OpenThread takes ownership of @p aMessage, and the caller should no longer
* reference @p aMessage. If the return value is not OT_ERROR_NONE, the caller retains ownership of @p aMessage,
* including freeing @p aMessage if the message buffer is no longer needed.
*
* @retval OT_ERROR_NONE The message is successfully scheduled for sending.
* @retval OT_ERROR_INVALID_ARGS Invalid arguments are given.
*
* @sa otUdpNewMessage
* @sa otUdpOpen
* @sa otUdpClose
Expand Down

0 comments on commit e914c6a

Please sign in to comment.