[−][src]Function openthread_sys::otCoapSecureConnect
pub unsafe extern "C" fn otCoapSecureConnect(
aInstance: *mut otInstance,
aSockAddr: *const otSockAddr,
aHandler: otHandleCoapSecureClientConnect,
aContext: *mut c_void
) -> otError
This method initializes DTLS session with a peer.
@param[in] aInstance A pointer to an OpenThread instance. @param[in] aSockAddr A pointer to the remote sockaddr. @param[in] aHandler A pointer to a function that will be called when the DTLS connection state changes. @param[in] aContext A pointer to arbitrary context information.
@retval OT_ERROR_NONE Successfully started DTLS connection.