Function openthread_sys::otPlatUdpSend
source ยท pub unsafe extern "C" fn otPlatUdpSend(
aUdpSocket: *mut otUdpSocket,
aMessage: *mut otMessage,
aMessageInfo: *const otMessageInfo,
) -> otError
Expand description
Sends UDP payload by platform.
@param[in] aUdpSocket A pointer to the UDP socket. @param[in] aMessage A pointer to the message to send. @param[in] aMessageInfo A pointer to the message info associated with @p aMessage.
@retval OT_ERROR_NONE Successfully sent by platform, and @p aMessage is freed. @retval OT_ERROR_FAILED Failed to bind UDP socket.