Function openthread_sys::otUdpBind

source ·
pub unsafe extern "C" fn otUdpBind(
    aInstance: *mut otInstance,
    aSocket: *mut otUdpSocket,
    aSockName: *const otSockAddr,
    aNetif: otNetifIdentifier
) -> otError
Expand description

Bind 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. @param[in] aNetif The network interface to bind.

@retval OT_ERROR_NONE Bind operation was successful. @retval OT_ERROR_FAILED Failed to bind UDP socket.