openthread_sys

Function otUdpAddReceiver

Source
pub unsafe extern "C" fn otUdpAddReceiver(
    aInstance: *mut otInstance,
    aUdpReceiver: *mut otUdpReceiver,
) -> otError
Expand description

Adds a UDP receiver.

@param[in] aInstance A pointer to an OpenThread instance. @param[in] aUdpReceiver A pointer to the UDP receiver.

@retval OT_ERROR_NONE The receiver is successfully added. @retval OT_ERROR_ALREADY The UDP receiver was already added.