openthread_sys

Function otUdpConnect

Source
pub unsafe extern "C" fn otUdpConnect(
    aInstance: *mut otInstance,
    aSocket: *mut otUdpSocket,
    aSockName: *const otSockAddr,
) -> otError
Expand description

Connect a UDP/IPv6 socket.

@param[in] aInstance A pointer to an OpenThread instance. @param[in] aSocket A pointer to a UDP socket structure. @param[in] aSockName A pointer to an IPv6 socket address structure.

@retval OT_ERROR_NONE Connect operation was successful. @retval OT_ERROR_FAILED Failed to connect UDP socket.