Function openthread_sys::otTcpBind
source ยท pub unsafe extern "C" fn otTcpBind(
aEndpoint: *mut otTcpEndpoint,
aSockName: *const otSockAddr,
) -> otError
Expand description
Binds the TCP endpoint to an IP address and port.
@param[in] aEndpoint A pointer to the TCP endpoint structure to bind. @param[in] aSockName The address and port to which to bind this TCP endpoint.
@retval OT_ERROR_NONE Successfully bound the TCP endpoint. @retval OT_ERROR_FAILED Failed to bind the TCP endpoint.