Function esp_idf_sys::esp_transport_connect

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

@brief 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

  • 0 in case of successful connection
  • (-1) if there are any errors, should check errno