Function esp_idf_svc::hal::sys::esp_transport_connect_async

source ยท
pub unsafe extern "C" fn esp_transport_connect_async(
    t: *mut esp_transport_item_t,
    host: *const i8,
    port: i32,
    timeout_ms: i32,
) -> i32
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.