pub unsafe extern "C" fn otUdpOpen(
aInstance: *mut otInstance,
aSocket: *mut otUdpSocket,
aCallback: otUdpReceive,
aContext: *mut c_void,
) -> otError
Expand description
Open 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] aCallback A pointer to the application callback function. @param[in] aContext A pointer to application-specific context.
@retval OT_ERROR_NONE Successfully opened the socket. @retval OT_ERROR_FAILED Failed to open the socket.