pub unsafe extern "C" fn esp_transport_connect_async(
    t: esp_transport_handle_t,
    host: *const c_char,
    port: c_int,
    timeout_ms: c_int
) -> c_int
Expand description

@brief Non-blocking transport connection function, to make a connection to server

@param t The transport handle @param[in] host Hostname @param[in] port Port @param[in] timeout_ms The timeout milliseconds (-1 indicates wait forever)

@return - -1 If connection establishment fails. - 0 If connection establishment is in progress. - 1 If connection establishment is successful.