[][src]Function openthread_sys::otUdpNewMessage

pub unsafe extern "C" fn otUdpNewMessage(
    aInstance: *mut otInstance,
    aSettings: *const otMessageSettings
) -> *mut otMessage

Allocate a new message buffer for sending a UDP message.

@note If @p aSettings is 'NULL', the link layer security is enabled and the message priority is set to OT_MESSAGE_PRIORITY_NORMAL by default.

@param[in] aInstance A pointer to an OpenThread instance. @param[in] aSettings A pointer to the message settings or NULL to set default settings.

@returns A pointer to the message buffer or NULL if no message buffers are available or parameters are invalid.

@sa otMessageFree